summaryrefslogtreecommitdiff
path: root/lisp
diff options
context:
space:
mode:
authorRichard M. Stallman <rms@gnu.org>1996-09-18 22:18:14 +0000
committerRichard M. Stallman <rms@gnu.org>1996-09-18 22:18:14 +0000
commita1e3f70c33bf937ffcfd76d33c97c44ddb18a248 (patch)
tree204911f6b65f89e385fe53dff5f5d5d0e553f284 /lisp
parentc759ad6ec1f2cb2a1206ccb939e4a220279b941c (diff)
downloademacs-a1e3f70c33bf937ffcfd76d33c97c44ddb18a248.tar.gz
(imenu--mouse-menu): Add special handling for rescan item.
Diffstat (limited to 'lisp')
-rw-r--r--lisp/imenu.el3
1 files changed, 2 insertions, 1 deletions
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)