]> git.eshelyaron.com Git - emacs.git/commitdiff
(imenu--generic-function): Use markers for positions.
authorRichard M. Stallman <rms@gnu.org>
Thu, 19 Sep 1996 04:25:40 +0000 (04:25 +0000)
committerRichard M. Stallman <rms@gnu.org>
Thu, 19 Sep 1996 04:25:40 +0000 (04:25 +0000)
lisp/imenu.el

index 323a279efefb4af13cb2efaa9d43c2a3fb8e13a9..876f6f2f06154a903ea9676de82015f2995d89d6 100644 (file)
@@ -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)