]> git.eshelyaron.com Git - emacs.git/commitdiff
(imenu--last-menubar-index-alist): Add doc.
authorRichard M. Stallman <rms@gnu.org>
Sat, 6 Feb 1999 21:50:53 +0000 (21:50 +0000)
committerRichard M. Stallman <rms@gnu.org>
Sat, 6 Feb 1999 21:50:53 +0000 (21:50 +0000)
(imenu-add-to-menubar):  Reset imenu--last-menubar-index-alist.

lisp/imenu.el

index f9b33b80b47dc324f553c1719f26256335e16a72..4fa74b7ec72468fcd7c3714443b05268e0067239 100644 (file)
@@ -426,8 +426,9 @@ This variable is local in all buffers, once set.")
 
 (make-variable-buffer-local 'imenu--index-alist)
 
-;; The latest buffer index used to update the menu bar menu.
-(defvar imenu--last-menubar-index-alist nil)
+(defvar imenu--last-menubar-index-alist nil
+  "The latest buffer index used to update the menu bar menu.")
+
 (make-variable-buffer-local 'imenu--last-menubar-index-alist)
 
 ;; History list for 'jump-to-function-in-buffer'.
@@ -991,6 +992,7 @@ See the command `imenu' for more information."
                   'imenu-default-create-index-function)))
       (let ((newmap (make-sparse-keymap))
            (menu-bar (lookup-key (current-local-map) [menu-bar])))
+       (setq imenu--last-menubar-index-alist nil)
        (define-key newmap [menu-bar]
          (append (make-sparse-keymap) menu-bar))
        (define-key newmap [menu-bar index]