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

(imenu--mouse-menu): Use assq when searching in FINAL.

parent 58a58dc0
......@@ -918,7 +918,7 @@ Returns t for rescan and otherwise an element or subelement of INDEX-ALIST."
(stringp (nth (1- (length position)) position)))
(let ((final menu))
(while position
(setq final (assoc (car position) final))
(setq final (assq (car position) final))
(setq position (cdr position)))
(or (string= (car final) (car imenu--rescan-item))
(nthcdr 3 final))))
......
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