Commit b8c44b29 authored by Richard M. Stallman's avatar Richard M. Stallman
Browse files

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

parent c0eae5b9
......@@ -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)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment