aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKarl Heuer1996-12-06 23:20:14 +0000
committerKarl Heuer1996-12-06 23:20:14 +0000
commit58e9d9c4bf1886e9df2117b13b2ef8f4e6cfaf7c (patch)
tree5cc4a7a3a8f997eda047bdaa621d7656fc2d719e
parentce1b4c71eb15296baa9efdd6f76810b94b2e22fc (diff)
downloademacs-58e9d9c4bf1886e9df2117b13b2ef8f4e6cfaf7c.tar.gz
emacs-58e9d9c4bf1886e9df2117b13b2ef8f4e6cfaf7c.zip
(imenu): Support integers used as positions.
-rw-r--r--lisp/imenu.el6
1 files changed, 6 insertions, 0 deletions
diff --git a/lisp/imenu.el b/lisp/imenu.el
index fbc184ae9ae..ff909cd227e 100644
--- a/lisp/imenu.el
+++ b/lisp/imenu.el
@@ -904,6 +904,12 @@ See `imenu-choose-buffer-index' for more information."
904 ;; widen if outside narrowing 904 ;; widen if outside narrowing
905 (widen)) 905 (widen))
906 (goto-char (cdr index-item))) 906 (goto-char (cdr index-item)))
907 ((integerp (cdr index-item))
908 (if (or (< (cdr index-item) (point-min))
909 (> (cdr index-item) (point-max)))
910 ;; widen if outside narrowing
911 (widen))
912 (goto-char (cdr index-item)))
907 (t 913 (t
908 ;; A special item with a function. 914 ;; A special item with a function.
909 (let ((function (cadr index-item)) 915 (let ((function (cadr index-item))