From: Lars Ingebrigtsen Date: Wed, 20 Jan 2021 03:17:41 +0000 (+0100) Subject: Fix up example in the Modifying Menus node in the lispref manual X-Git-Tag: emacs-28.0.90~4200 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=3bbec2eb2b2a48a0eaac8e83c27313bfbe9d420e;p=emacs.git 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). --- diff --git a/doc/lispref/keymaps.texi b/doc/lispref/keymaps.texi index 37bab7ea9bc..55d179b8753 100644 --- a/doc/lispref/keymaps.texi +++ b/doc/lispref/keymaps.texi @@ -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