From: Michael Heerdegen Date: Wed, 21 Aug 2019 13:51:13 +0000 (+0200) Subject: Hi-lock lines up to right margin (Bug#15934) X-Git-Tag: emacs-27.0.90~1328^2~101 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=d534687c43a1517e291b8de31e3ce23c2e6e4603;p=emacs.git Hi-lock lines up to right margin (Bug#15934) * lisp/hi-lock.el (hi-lock-line-face-buffer): Change used regexp so that a line terminating newline character is included in the match. --- diff --git a/lisp/hi-lock.el b/lisp/hi-lock.el index 65465d3b4c8..b6b0e2a736e 100644 --- a/lisp/hi-lock.el +++ b/lisp/hi-lock.el @@ -447,7 +447,7 @@ highlighting will not update as you type." (hi-lock-set-pattern ;; The \\(?:...\\) grouping construct ensures that a leading ^, +, * or ? ;; or a trailing $ in REGEXP will be interpreted correctly. - (concat "^.*\\(?:" regexp "\\).*$") face)) + (concat "^.*\\(?:" regexp "\\).*\\(?:$\\)\n?") face)) ;;;###autoload