From: Richard M. Stallman Date: Wed, 18 Sep 1996 22:18:14 +0000 (+0000) Subject: (imenu--mouse-menu): Add special handling for rescan item. X-Git-Tag: emacs-20.1~3708 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=b8c44b291a6004d6964f5c0fff4d1095c760b87e;p=emacs.git (imenu--mouse-menu): Add special handling for rescan item. --- diff --git a/lisp/imenu.el b/lisp/imenu.el index 64ceb7a0cb1..323a279efef 100644 --- a/lisp/imenu.el +++ b/lisp/imenu.el @@ -729,7 +729,8 @@ Returns t for rescan and otherwise an element or subelement of INDEX-ALIST." (while position (setq final (assoc (car position) final)) (setq position (cdr position))) - (cdr (cdr (cdr final))))) + (or (string= (car final) (car imenu--rescan-item)) + (cdr (cdr (cdr final)))))) ;; If x-popup-menu went just one level and found a leaf item, ;; return the INDEX-ALIST element for that. ((and (consp position)