[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] master 3a1d722: * lisp/vc/diff-mode.el (diff-syntax-fontif
From: |
Juri Linkov |
Subject: |
[Emacs-diffs] master 3a1d722: * lisp/vc/diff-mode.el (diff-syntax-fontify-props): Use font-lock-ensure |
Date: |
Wed, 19 Dec 2018 16:55:39 -0500 (EST) |
branch: master
commit 3a1d7227c24f59668dd0ed24527485d4010de2cb
Author: Juri Linkov <address@hidden>
Commit: Juri Linkov <address@hidden>
* lisp/vc/diff-mode.el (diff-syntax-fontify-props): Use font-lock-ensure
unconditionally. (Bug#33798)
---
lisp/vc/diff-mode.el | 9 +--------
1 file changed, 1 insertion(+), 8 deletions(-)
diff --git a/lisp/vc/diff-mode.el b/lisp/vc/diff-mode.el
index 043d22d..dd3a04b 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))
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Emacs-diffs] master 3a1d722: * lisp/vc/diff-mode.el (diff-syntax-fontify-props): Use font-lock-ensure,
Juri Linkov <=