Mercurial > emacs
changeset 32279:869a035f39fa
(imenu-add-to-menubar): Fix last change.
author | Dave Love <fx@gnu.org> |
---|---|
date | Sun, 08 Oct 2000 09:37:01 +0000 |
parents | c769cc8c9d6f |
children | e3b6714d835d |
files | lisp/imenu.el |
diffstat | 1 files changed, 3 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/lisp/imenu.el Sun Oct 08 09:27:58 2000 +0000 +++ b/lisp/imenu.el Sun Oct 08 09:37:01 2000 +0000 @@ -1001,11 +1001,9 @@ (let ((newmap (make-sparse-keymap))) (set-keymap-parent newmap (current-local-map)) (setq imenu--last-menubar-index-alist nil) - (define-key newmap [menu-bar] - (let ((map (make-sparse-keymap))) - (define-key map [index] - `(menu-item ,name ,(make-sparse-keymap "Imenu"))) - map)) + (define-key newmap [menu-bar index] + (define-key map [index] + `(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)))