summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEli Zaretskii <eliz@gnu.org>2023-07-18 16:17:15 +0300
committerEli Zaretskii <eliz@gnu.org>2023-07-18 16:17:15 +0300
commitd172cd59854699c00de3b57a91e48ff70a4210f8 (patch)
tree7e464c55cc09ea6438822a4a11d2b2572a0bd46c
parent927e8b470fc342fcdefa68a75ce01f3a45300dc7 (diff)
downloademacs-d172cd59854699c00de3b57a91e48ff70a4210f8.tar.gz
; * doc/lispref/keymaps.texi (Modifying Menus): Add cross-references.
-rw-r--r--doc/lispref/keymaps.texi17
1 files changed, 9 insertions, 8 deletions
diff --git a/doc/lispref/keymaps.texi b/doc/lispref/keymaps.texi
index 66bb834192c..24b7738caff 100644
--- a/doc/lispref/keymaps.texi
+++ b/doc/lispref/keymaps.texi
@@ -3172,14 +3172,15 @@ the menu. To put it elsewhere in the menu, use @code{keymap-set-after}:
@defun keymap-set-after map key binding &optional after
Define a binding in @var{map} for @var{key}, with value @var{binding},
-just like @code{define-key}, but position the binding in @var{map} after
-the binding for the event @var{after}. The argument @var{key} should
-represent a single menu item or key, and @var{after} should be a
-single event type---a symbol or a character, not a sequence. The new
-binding goes after the binding for @var{after}. If @var{after} is
-@code{t} or is omitted, then the new binding goes last, at the end of
-the keymap. However, new bindings are added before any inherited
-keymap.
+just like @code{keymap-set} (@pxref{Changing Key Bindings}), but
+position the binding in @var{map} after the binding for the event
+@var{after}. The argument @var{key} should represent a single menu
+item or key, and should satisfy @code{key-valid-p} (@pxref{Key
+Sequences}). @var{after} should be a single event type---a symbol or
+a character, not a sequence. The new binding goes after the binding
+for @var{after}. If @var{after} is @code{t} or is omitted, then the
+new binding goes last, at the end of the keymap. However, new
+bindings are added before any inherited keymap.
Here is an example: