diff options
author | Lars Ingebrigtsen <larsi@gnus.org> | 2021-11-29 23:54:48 +0100 |
---|---|---|
committer | Lars Ingebrigtsen <larsi@gnus.org> | 2021-11-29 23:55:00 +0100 |
commit | 1efc14561d6ec735cd35ac5e8124c4c244b1f1a2 (patch) | |
tree | 9e699f8d5d7a7fddf0b7e30ba5c50ea8d221ea61 /doc/lispref/help.texi | |
parent | 50379fb78d04deb9f422b906add126219a1a775d (diff) | |
download | emacs-1efc14561d6ec735cd35ac5e8124c4c244b1f1a2.tar.gz emacs-1efc14561d6ec735cd35ac5e8124c4c244b1f1a2.tar.bz2 emacs-1efc14561d6ec735cd35ac5e8124c4c244b1f1a2.zip |
Edit the lispref manual for define-key/keymap-set fallout
* doc/lispref/variables.texi (Tips for Defining):
* doc/lispref/text.texi (Clickable Text):
* doc/lispref/modes.texi (Derived Modes):
(Example Major Modes):
* doc/lispref/loading.texi (Autoload):
(Hooks for Loading):
* doc/lispref/keymaps.texi (Creating Keymaps):
(Inheritance and Keymaps):
(Controlling Active Maps):
(Changing Key Bindings):
(Low-Level Key Binding):
(Remapping Commands):
(Translation Keymaps):
(Key Binding Commands):
* doc/lispref/help.texi (Help Functions):
* doc/lispref/display.texi (Abstract Display Example):
* doc/lispref/commands.texi (Interactive Codes):
(Keyboard Events):
(Misc Events):
(Classifying Events):
(Strings of Events): Prefer `keymap-set' instead of `define-key'
most places, and use `defvar-keymap' in some of the examples.
Diffstat (limited to 'doc/lispref/help.texi')
-rw-r--r-- | doc/lispref/help.texi | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/lispref/help.texi b/doc/lispref/help.texi index 1a9eb30fde1..71017a4d3db 100644 --- a/doc/lispref/help.texi +++ b/doc/lispref/help.texi @@ -647,7 +647,7 @@ follows: @smallexample @group -(define-key global-map (string help-char) 'help-command) +(keymap-set global-map (key-description (string help-char)) 'help-command) (fset 'help-command help-map) @end group @end smallexample |