# HG changeset patch # User Karl Heuer # Date 849914414 0 # Node ID 64d5a9772d14bf7749f43205c10d05fe3e6ec9ac # Parent e746a7bd63768f7e31235660a8f4fbbb825a77d0 (imenu): Support integers used as positions. diff -r e746a7bd6376 -r 64d5a9772d14 lisp/imenu.el --- 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))