0

Consider the following menu item:

Emacs menu bar

Notice that the separator is "--" (between *Messages* and Next Buffer). Is there a way to change the separator? I would like to change it to "======" instead.

The separator is apparently set by menu-bar-separator, which is defined in subr.el:

(defconst menu-bar-separator '("--") "Separator for menus.") 

It appears to be a constant. Does this mean that it is impossible to change the menu bar separator?

3
  • emacs.stackexchange.com/tags/elisp/info Commented Jan 12, 2021 at 0:19
  • It actually is not limited to the menu-bar, and it is in no way a separator for the menu bar. It's used to separate menu items in a menu (and not just a menu-bar menu). You can change the value of a defconst variable, but the purpose of a defconst is to indicate to humans that the variable normally should not be changed by anyone or any program. In this case, as far as I can see, changing the value (at runtime, at least) does not change the behavior. Commented Jan 12, 2021 at 0:35
  • I just filed bug #45806, about the misleading name and paltry doc. Commented Jan 12, 2021 at 0:37

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.