From b8c44b291a6004d6964f5c0fff4d1095c760b87e Mon Sep 17 00:00:00 2001 From: "Richard M. Stallman" Date: Wed, 18 Sep 1996 22:18:14 +0000 Subject: [PATCH] (imenu--mouse-menu): Add special handling for rescan item. --- lisp/imenu.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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) -- 2.39.2