Mercurial > emacs
changeset 16612:64d5a9772d14
(imenu): Support integers used as positions.
author | Karl Heuer <kwzh@gnu.org> |
---|---|
date | Fri, 06 Dec 1996 23:20:14 +0000 |
parents | e746a7bd6376 |
children | 5c681a822a49 |
files | lisp/imenu.el |
diffstat | 1 files changed, 6 insertions(+), 0 deletions(-) [+] |
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))