From: Dave Love Date: Sun, 8 Oct 2000 15:13:43 +0000 (+0000) Subject: (imenu-add-to-menubar): Fix again. X-Git-Tag: emacs-pretest-21.0.90~1046 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=fbfb705c15947f32b127e8eccc6a233d8ee300ed;p=emacs.git (imenu-add-to-menubar): Fix again. --- 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." (set-keymap-parent newmap (current-local-map)) (setq imenu--last-menubar-index-alist nil) (define-key newmap [menu-bar index] - (define-key map [index] - `(menu-item ,name ,(make-sparse-keymap "Imenu")))) + `(menu-item ,name ,(make-sparse-keymap "Imenu"))) (use-local-map newmap) (add-hook 'menu-bar-update-hook 'imenu-update-menubar)) (error "The mode `%s' does not support Imenu" mode-name)))