]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix up example in the Modifying Menus node in the lispref manual
authorLars Ingebrigtsen <larsi@gnus.org>
Wed, 20 Jan 2021 03:17:41 +0000 (04:17 +0100)
committerLars Ingebrigtsen <larsi@gnus.org>
Wed, 20 Jan 2021 03:17:41 +0000 (04:17 +0100)
* doc/lispref/keymaps.texi (Modifying Menus): Make the second
example more regular (bug#14257).

doc/lispref/keymaps.texi

index 37bab7ea9bc0cec3e803b5d90ee4f62bd220ca7b..55d179b8753bb1e97e77734c17563e12c7ee9b8d 100644 (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