diff options
| author | Juri Linkov | 2018-12-19 23:55:32 +0200 |
|---|---|---|
| committer | Juri Linkov | 2018-12-19 23:55:32 +0200 |
| commit | 3a1d7227c24f59668dd0ed24527485d4010de2cb (patch) | |
| tree | 9d71d5a2ac01257d55b6e6d956228ad3ffc27dd2 | |
| parent | 5bd6074415e8d572931ee51112d9b70b70e2ba55 (diff) | |
| download | emacs-3a1d7227c24f59668dd0ed24527485d4010de2cb.tar.gz emacs-3a1d7227c24f59668dd0ed24527485d4010de2cb.zip | |
* lisp/vc/diff-mode.el (diff-syntax-fontify-props): Use font-lock-ensure
unconditionally. (Bug#33798)
| -rw-r--r-- | lisp/vc/diff-mode.el | 9 |
1 files changed, 1 insertions, 8 deletions
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." | |||
| 2525 | 2525 | ||
| 2526 | (when (and beg end) | 2526 | (when (and beg end) |
| 2527 | (goto-char beg) | 2527 | (goto-char beg) |
| 2528 | (if file | 2528 | (font-lock-ensure beg end) |
| 2529 | ;; In a temporary or cached buffer | ||
| 2530 | (when (text-property-not-all beg end 'fontified t) | ||
| 2531 | (save-excursion | ||
| 2532 | (font-lock-fontify-region beg end) | ||
| 2533 | (put-text-property beg end 'fontified t))) | ||
| 2534 | ;; In an existing buffer | ||
| 2535 | (font-lock-ensure beg end)) | ||
| 2536 | 2529 | ||
| 2537 | (while (< (point) end) | 2530 | (while (< (point) end) |
| 2538 | (let* ((bol (point)) | 2531 | (let* ((bol (point)) |