Mercurial > emacs
diff lisp/imenu.el @ 16244:2d2356e78b9e
(imenu--generic-function): Use markers for positions.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Thu, 19 Sep 1996 04:25:40 +0000 |
parents | 52620db97569 |
children | 00bece0cd6c2 |
line wrap: on
line diff
--- a/lisp/imenu.el Thu Sep 19 03:31:13 1996 +0000 +++ b/lisp/imenu.el Thu Sep 19 04:25:40 1996 +0000 @@ -640,8 +640,9 @@ (index (caddr pat))) (if (and (not found) ; Only allow one entry; (looking-at regexp)) - (let ((beg (match-beginning index)) + (let ((beg (make-marker)) (end (match-end index))) + (set-marker beg (match-beginning index)) (setq found t) (push (cons (buffer-substring-no-properties beg end) beg)