From: Juri Linkov Date: Wed, 19 Dec 2018 21:55:32 +0000 (+0200) Subject: * lisp/vc/diff-mode.el (diff-syntax-fontify-props): Use font-lock-ensure X-Git-Tag: emacs-27.0.90~3954 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=3a1d7227c24f59668dd0ed24527485d4010de2cb;p=emacs.git * lisp/vc/diff-mode.el (diff-syntax-fontify-props): Use font-lock-ensure unconditionally. (Bug#33798) --- diff --git a/lisp/vc/diff-mode.el b/lisp/vc/diff-mode.el index 043d22d14b3..dd3a04b4e75 100644 --- a/lisp/vc/diff-mode.el +++ b/lisp/vc/diff-mode.el @@ -2525,14 +2525,7 @@ hunk text is not found in the source file." (when (and beg end) (goto-char beg) - (if file - ;; In a temporary or cached buffer - (when (text-property-not-all beg end 'fontified t) - (save-excursion - (font-lock-fontify-region beg end) - (put-text-property beg end 'fontified t))) - ;; In an existing buffer - (font-lock-ensure beg end)) + (font-lock-ensure beg end) (while (< (point) end) (let* ((bol (point))