The mode line for an elisp file shows the mode as elisp/d or elisp/l, where the /d is shown in red. I now understand /d to refer to dynamic scoping and /l to refer to lexical scoping. Mouse 1 can be used on the /d or /l in the mode line. Where is the documentation for /d or /l in this case? Looking at function "define-derived-mode" in "elisp-mode.el.gz" is of some help, but that is all that I have found so far.
Function "buffer-menu" also shows the mode of an elisp file in a similar manner.
I am using the following Emacs version:
GNU Emacs 29.4 (build 1, aarch64-apple-darwin21.6.0, NS appkit-2113.60 Version 12.6.6 (Build 21G646)) of 2024-08-02
C-h i g (elisp)Variable Scoping/land/din your example" then you're looking forC-h i g (elisp)Mode Line Formatemacs-lisp-modespecifically, then simply look at the definition ofM-x find-function RET emacs-lisp-mode, or else checkC-h v mode-namein any buffer for an elisp file.