From: Karl Heuer Date: Fri, 6 Dec 1996 23:20:14 +0000 (+0000) Subject: (imenu): Support integers used as positions. X-Git-Tag: emacs-20.1~3332 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=58e9d9c4bf1886e9df2117b13b2ef8f4e6cfaf7c;p=emacs.git (imenu): Support integers used as positions. --- 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." ;; 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))