]> code.delx.au - gnu-emacs/commit
Replace xref-match-bounds with xref-match-length
authorDmitry Gutov <dgutov@yandex.ru>
Sun, 8 Nov 2015 03:01:05 +0000 (05:01 +0200)
committerDmitry Gutov <dgutov@yandex.ru>
Fri, 13 Nov 2015 23:01:58 +0000 (01:01 +0200)
commitfe973fc270f231f386fc5b26c9fced8925593ecb
tree42951017b9e7a71d075d88e9bd420a8d1daeda25
parent92a501022e0154cd9de41240680b7f003a833c96
Replace xref-match-bounds with xref-match-length

Relying on xref-location-marker to point to the beginning of the match

* lisp/progmodes/xref.el (xref-match-bounds): Remove.
(xref-match-length): Add.
(xref-make-match): Change the arguments.
(xref--match-buffer-bounds): Remove.
(xref-match-item): Store length, instead of end-column.
(xref-pulse-momentarily)
(xref--collect-match)
(xref--query-replace-1): Update accordingly.
(xref-query-replace): Ditto.  And check that the search results
are up-to-date.
lisp/progmodes/xref.el