Fix up example in the Modifying Menus node in the lispref manual

* doc/lispref/keymaps.texi (Modifying Menus): Make the second
example more regular (bug#14257).
This commit is contained in:
Lars Ingebrigtsen 2021-01-20 04:17:41 +01:00
parent f925aabcce
commit 3bbec2eb2b

View file

@ -2852,9 +2852,8 @@ Here is how to insert an item called @samp{Work} in the @samp{Signals}
menu of Shell mode, after the item @code{break}:
@example
(define-key-after
(lookup-key shell-mode-map [menu-bar signals])
[work] '("Work" . work-command) 'break)
(define-key-after shell-mode-map [menu-bar signals work]
'("Work" . work-command) 'break)
@end example
@end defun