(imenu--mouse-menu): Add special handling for rescan item.

This commit is contained in:
Richard M. Stallman 1996-09-18 22:18:14 +00:00
parent c0eae5b9ba
commit b8c44b291a

View file

@ -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)