changeset 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 b311d8755530
children d960549d163c
files lisp/imenu.el
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
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)