Mercurial > emacs
diff lisp/imenu.el @ 16612:64d5a9772d14
(imenu): Support integers used as positions.
author | Karl Heuer <kwzh@gnu.org> |
---|---|
date | Fri, 06 Dec 1996 23:20:14 +0000 |
parents | 4d7d18a39871 |
children | 13920eac02e0 |
line wrap: on
line diff
--- a/lisp/imenu.el Fri Dec 06 23:18:25 1996 +0000 +++ b/lisp/imenu.el Fri Dec 06 23:20:14 1996 +0000 @@ -904,6 +904,12 @@ ;; widen if outside narrowing (widen)) (goto-char (cdr index-item))) + ((integerp (cdr index-item)) + (if (or (< (cdr index-item) (point-min)) + (> (cdr index-item) (point-max))) + ;; widen if outside narrowing + (widen)) + (goto-char (cdr index-item))) (t ;; A special item with a function. (let ((function (cadr index-item))