From fdc5fa25cb979c88a87a2006c13a216faf9edffe Mon Sep 17 00:00:00 2001 From: "Richard M. Stallman" Date: Tue, 6 Apr 1999 20:02:45 +0000 Subject: [PATCH] (imenu--mouse-menu): Use assq when searching in FINAL. --- lisp/imenu.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/imenu.el b/lisp/imenu.el index 4fa74b7ec72..f9028d34ef0 100644 --- a/lisp/imenu.el +++ b/lisp/imenu.el @@ -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)))) -- 2.39.2