diff options
| author | Dave Love | 2000-10-08 15:13:43 +0000 |
|---|---|---|
| committer | Dave Love | 2000-10-08 15:13:43 +0000 |
| commit | fbfb705c15947f32b127e8eccc6a233d8ee300ed (patch) | |
| tree | 392375738a4009f048188cd2fc913fa2cf96a837 | |
| parent | 4e953aff359978a749401bac06d83de5909d99e9 (diff) | |
| download | emacs-fbfb705c15947f32b127e8eccc6a233d8ee300ed.tar.gz emacs-fbfb705c15947f32b127e8eccc6a233d8ee300ed.zip | |
(imenu-add-to-menubar): Fix again.
| -rw-r--r-- | lisp/imenu.el | 3 |
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))) |