diff options
| author | Dmitry Gutov | 2015-07-09 15:28:04 +0300 |
|---|---|---|
| committer | Dmitry Gutov | 2015-07-09 15:30:33 +0300 |
| commit | c7e9792565dc8a8a91bb8d1e1a9f698c751a9c1e (patch) | |
| tree | 2db00ae16d3ebe762e62b4a2d3900a0638231576 | |
| parent | 20368cc0120cae589bb70fc313a5ba54117d04b1 (diff) | |
| download | emacs-c7e9792565dc8a8a91bb8d1e1a9f698c751a9c1e.tar.gz emacs-c7e9792565dc8a8a91bb8d1e1a9f698c751a9c1e.zip | |
Syntax-propertize until the end of the line first
* lisp/progmodes/xref.el (xref--collect-match): Syntax-propertize
until the end of the line first.
| -rw-r--r-- | lisp/progmodes/xref.el | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lisp/progmodes/xref.el b/lisp/progmodes/xref.el index 78094ab625c..f175c89c573 100644 --- a/lisp/progmodes/xref.el +++ b/lisp/progmodes/xref.el | |||
| @@ -798,6 +798,7 @@ tools are used, and when." | |||
| 798 | (save-excursion | 798 | (save-excursion |
| 799 | (goto-char (point-min)) | 799 | (goto-char (point-min)) |
| 800 | (forward-line (1- line)) | 800 | (forward-line (1- line)) |
| 801 | (syntax-propertize (line-end-position)) | ||
| 801 | (when (re-search-forward regexp (line-end-position) t) | 802 | (when (re-search-forward regexp (line-end-position) t) |
| 802 | (goto-char (match-beginning 0)) | 803 | (goto-char (match-beginning 0)) |
| 803 | (xref-make (buffer-substring | 804 | (xref-make (buffer-substring |