0

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

4
  • Are you looking for documentation about dynamic scope and lexical scope? You can find that at C-h i g (elisp)Variable Scoping Commented Nov 16 at 16:04
  • If you're looking for documentation on "creating mode-line constructs such as the /l and /d in your example" then you're looking for C-h i g (elisp)Mode Line Format Commented Nov 16 at 16:07
  • If you just want to see the code that does this for emacs-lisp-mode specifically, then simply look at the definition of M-x find-function RET emacs-lisp-mode, or else check C-h v mode-name in any buffer for an elisp file. Commented Nov 16 at 16:08
  • (If you clarify the question, I'll convert the appropriate comment to an answer -- assuming it was one of the above.) Commented Nov 16 at 16:09

0

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.