entries from `imenu--index-alist' are ordered by buffer position,
which fails when submenus are present (Bug#3153).
+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.
(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))))))