summaryrefslogtreecommitdiff
path: root/lisp/imenu.el
diff options
context:
space:
mode:
authorFeng Li <fengli@gmail.com>2013-01-10 10:36:01 -0500
committerStefan Monnier <monnier@iro.umontreal.ca>2013-01-10 10:36:01 -0500
commite6ed8f08460d9bc9af7109c5a8619b3d1d407bdf (patch)
treeb8e62bdf81bae00b909761fd5fa778951ef5710b /lisp/imenu.el
parent327a6ccaa01cdcd220e74df4f71acf0ad7e92f5f (diff)
downloademacs-e6ed8f08460d9bc9af7109c5a8619b3d1d407bdf.tar.gz
* lisp/progmodes/which-func.el (which-function): Understand Semantic's use
of overlays in imenu--index-alist.
Diffstat (limited to 'lisp/imenu.el')
-rw-r--r--lisp/imenu.el2
1 files changed, 2 insertions, 0 deletions
diff --git a/lisp/imenu.el b/lisp/imenu.el
index 0bfee770094..f64d1afe951 100644
--- a/lisp/imenu.el
+++ b/lisp/imenu.el
@@ -447,6 +447,8 @@ Don't move point."
Simple elements in the alist look like (INDEX-NAME . POSITION).
POSITION is the buffer position of the item; to go to the item
is simply to move point to that position.
+POSITION is passed to `imenu-default-goto-function', so it can be a non-number
+if that variable has been changed (e.g. Semantic uses overlays for POSITIONs).
Special elements look like (INDEX-NAME POSITION FUNCTION ARGUMENTS...).
To \"go to\" a special element means applying FUNCTION