From: Dmitry Gutov Date: Thu, 9 Jul 2015 12:28:04 +0000 (+0300) Subject: Syntax-propertize until the end of the line first X-Git-Tag: archive/raspbian/1%29.2+1-2+rpi1^2~5^2~23^2~2324 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=c7e9792565dc8a8a91bb8d1e1a9f698c751a9c1e;p=emacs.git 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. --- 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." (save-excursion (goto-char (point-min)) (forward-line (1- line)) + (syntax-propertize (line-end-position)) (when (re-search-forward regexp (line-end-position) t) (goto-char (match-beginning 0)) (xref-make (buffer-substring