Commit 5d43dca8 authored by Richard M. Stallman's avatar Richard M. Stallman
Browse files

(imenu-update-menubar): Fix code to install the new menu.

parent 98ab445d
......@@ -822,8 +822,7 @@ See the command `imenu' for more information."
(cdr (car (cdr menu))))
(setq old (lookup-key (current-local-map) [menu-bar index]))
(if (keymapp old)
(setcdr (nthcdr 2 old) menu1)))))))
(setcdr old (cdr menu1)))))))
(defun imenu--menubar-select (item)
"Use Imenu to select the function or variable named in this menu item."
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment