Fix markup of fake keys in the ELisp manual
* doc/lispref/keymaps.texi (Menu Bar, Tool Bar): Fix markup of fake keys. (Bug#34785)
This commit is contained in:
parent
82d4b9872f
commit
0589de55c4
1 changed files with 6 additions and 5 deletions
|
@ -2502,7 +2502,7 @@ can do it this way:
|
||||||
|
|
||||||
Emacs usually shows a @dfn{menu bar} at the top of each frame.
|
Emacs usually shows a @dfn{menu bar} at the top of each frame.
|
||||||
@xref{Menu Bars,,,emacs, The GNU Emacs Manual}. Menu bar items are
|
@xref{Menu Bars,,,emacs, The GNU Emacs Manual}. Menu bar items are
|
||||||
subcommands of the fake function key @code{menu-bar}, as defined
|
subcommands of the fake function key @key{MENU-BAR}, as defined
|
||||||
in the active keymaps.
|
in the active keymaps.
|
||||||
|
|
||||||
To add an item to the menu bar, invent a fake function key of your
|
To add an item to the menu bar, invent a fake function key of your
|
||||||
|
@ -2554,9 +2554,10 @@ bar item:
|
||||||
@end example
|
@end example
|
||||||
|
|
||||||
@noindent
|
@noindent
|
||||||
Here, @code{edit} is the fake function key used by the global map for
|
Here, @code{edit} is the symbol produced by a fake function key, it is
|
||||||
the @samp{Edit} menu bar item. The main reason to suppress a global
|
used by the global map for the @samp{Edit} menu bar item. The main
|
||||||
menu bar item is to regain space for mode-specific items.
|
reason to suppress a global menu bar item is to regain space for
|
||||||
|
mode-specific items.
|
||||||
|
|
||||||
@defvar menu-bar-final-items
|
@defvar menu-bar-final-items
|
||||||
Normally the menu bar shows global items followed by items defined by the
|
Normally the menu bar shows global items followed by items defined by the
|
||||||
|
@ -2601,7 +2602,7 @@ If the value is @code{grow-only}, the tool bar expands automatically,
|
||||||
but does not contract automatically.
|
but does not contract automatically.
|
||||||
|
|
||||||
The tool bar contents are controlled by a menu keymap attached to a
|
The tool bar contents are controlled by a menu keymap attached to a
|
||||||
fake function key called @code{tool-bar} (much like the way the menu
|
fake function key called @key{TOOL-BAR} (much like the way the menu
|
||||||
bar is controlled). So you define a tool bar item using
|
bar is controlled). So you define a tool bar item using
|
||||||
@code{define-key}, like this:
|
@code{define-key}, like this:
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue