mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-07 06:50:23 -08:00
; * doc/lispref/tips.texi (Documentation Tips): Improve (bug#70163).
This commit is contained in:
parent
bd2c4d825d
commit
c6899603b9
1 changed files with 7 additions and 5 deletions
|
|
@ -834,13 +834,15 @@ it substitutes whatever key is currently bound to @code{forward-char}.
|
||||||
user has moved key bindings.) @xref{Keys in Documentation}.
|
user has moved key bindings.) @xref{Keys in Documentation}.
|
||||||
|
|
||||||
@item
|
@item
|
||||||
In documentation strings for a major mode, you will want to refer to the
|
In documentation strings for a major mode, you will want to refer to
|
||||||
key bindings of that mode's local map, rather than global ones.
|
the key bindings of that mode's local map, rather than global ones.
|
||||||
Therefore, use the construct @samp{\\<@dots{}>} once in the
|
Therefore, use the construct @samp{\\<@dots{}>} once in the
|
||||||
documentation string to specify which key map to use. Do this before
|
documentation string to specify which key map to use. Do this before
|
||||||
the first use of @samp{\\[@dots{}]}. The text inside the
|
the first use of @samp{\\[@dots{}]}, and not in the middle of a
|
||||||
@samp{\\<@dots{}>} should be the name of the variable containing the
|
sentence (since if the map is not loaded, the reference to the map
|
||||||
local keymap for the major mode.
|
will be replaced with a sentence saying the map is not currently
|
||||||
|
defined). The text inside the @samp{\\<@dots{}>} should be the name
|
||||||
|
of the variable containing the local keymap for the major mode.
|
||||||
|
|
||||||
Each use of @samp{\\[@dots{}]} slows the display of the documentation
|
Each use of @samp{\\[@dots{}]} slows the display of the documentation
|
||||||
string by a tiny amount. If you use a lot of them, these tiny
|
string by a tiny amount. If you use a lot of them, these tiny
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue