mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-03-03 04:21:28 -08:00
(imenu--generic-function): Use markers for positions.
This commit is contained in:
parent
6b5d3b89ee
commit
cbcf50d2c2
1 changed files with 2 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue