(imenu): In interactive spec, pass the entire

index item, not just the string.
This commit is contained in:
Richard M. Stallman 1996-06-05 17:19:36 +00:00
parent aafe514744
commit 880169e2c3

View file

@ -851,7 +851,7 @@ See `imenu-choose-buffer-index' for more information."
(interactive
(list (save-restriction
(widen)
(car (imenu-choose-buffer-index)))))
(imenu-choose-buffer-index))))
;; Convert a string to an alist element.
(if (stringp index-item)
(setq index-item (assoc index-item (imenu--make-index-alist))))