aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lisp/imenu.el3
1 files changed, 1 insertions, 2 deletions
diff --git a/lisp/imenu.el b/lisp/imenu.el
index 8f223d3fb1c..eb7dc042e68 100644
--- a/lisp/imenu.el
+++ b/lisp/imenu.el
@@ -1002,8 +1002,7 @@ See the command `imenu' for more information."
1002 (set-keymap-parent newmap (current-local-map)) 1002 (set-keymap-parent newmap (current-local-map))
1003 (setq imenu--last-menubar-index-alist nil) 1003 (setq imenu--last-menubar-index-alist nil)
1004 (define-key newmap [menu-bar index] 1004 (define-key newmap [menu-bar index]
1005 (define-key map [index] 1005 `(menu-item ,name ,(make-sparse-keymap "Imenu")))
1006 `(menu-item ,name ,(make-sparse-keymap "Imenu"))))
1007 (use-local-map newmap) 1006 (use-local-map newmap)
1008 (add-hook 'menu-bar-update-hook 'imenu-update-menubar)) 1007 (add-hook 'menu-bar-update-hook 'imenu-update-menubar))
1009 (error "The mode `%s' does not support Imenu" mode-name))) 1008 (error "The mode `%s' does not support Imenu" mode-name)))