diff options
author | Richard M. Stallman <rms@gnu.org> | 1996-09-19 04:25:40 +0000 |
---|---|---|
committer | Richard M. Stallman <rms@gnu.org> | 1996-09-19 04:25:40 +0000 |
commit | 7e27f2d19fb755e0f9b1144fc036fc794036f068 (patch) | |
tree | dca9cdd184f8a3a4bbff861ca68dc78ffba82bd9 | |
parent | 0cfd7d29a4a7a77a119abce4f911a378b759b81f (diff) | |
download | emacs-7e27f2d19fb755e0f9b1144fc036fc794036f068.tar.gz |
(imenu--generic-function): Use markers for positions.
-rw-r--r-- | lisp/imenu.el | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lisp/imenu.el b/lisp/imenu.el index 323a279efef..876f6f2f061 100644 --- a/lisp/imenu.el +++ b/lisp/imenu.el @@ -640,8 +640,9 @@ pattern. (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) |