Commit 1c6bf196 authored by Chong Yidong's avatar Chong Yidong

* progmodes/which-func.el (which-function): Don't assume that

entries from `imenu--index-alist' are ordered by buffer position,
which fails when submenus are present (Bug#3153).
parent 77bf07e1
2009-04-28 Geert Kloosterman <g.j.kloosterman@gmail.com> (tiny change)
* progmodes/which-func.el (which-function): Don't assume that
entries from `imenu--index-alist' are ordered by buffer position,
which fails when submenus are present (Bug#3153).
2009-04-28 Stefan Monnier <monnier@iro.umontreal.ca>
* international/quail.el (quail-vunion): Remove unexplained nreverse.
......
......@@ -310,11 +310,8 @@ If no function name is found, return nil."
(setq minoffset offset
name (funcall
which-func-imenu-joiner-function
(reverse (cons (car pair) namestack)))))
;; Entries in order, so can skip all those after point.
(setq alist nil
imstack nil)))))
(reverse (cons (car pair)
namestack)))))))))
(setq alist (car imstack)
namestack (cdr namestack)
imstack (cdr imstack))))))
......
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