diff options
| author | Jonas Bernoulli <jonas@bernoul.li> | 2015-07-06 12:23:24 +0200 |
|---|---|---|
| committer | Jonas Bernoulli <jonas@bernoul.li> | 2015-07-06 12:31:26 +0200 |
| commit | 0358fbdb1cfe0fa5ce287679795c96d4875c0de2 (patch) | |
| tree | 0eba31b75efbef82a61647422128771b665c8b2b /lisp/git-commit.el | |
| parent | 00c847994865ac407264c8934ec38335e1b53b65 (diff) | |
use font-lock-ensure if available
It's available starting with Emacs v25.1.
Diffstat (limited to 'lisp/git-commit.el')
| -rw-r--r-- | lisp/git-commit.el | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lisp/git-commit.el b/lisp/git-commit.el index 7cd0605..8901999 100644 --- a/lisp/git-commit.el +++ b/lisp/git-commit.el @@ -638,7 +638,10 @@ With a numeric prefix ARG, go forward ARG comments." (delete-region (point) (point-max))))) (diff-mode) (let (font-lock-verbose font-lock-support-mode) - (font-lock-fontify-buffer)) + (if (fboundp 'font-lock-ensure) + (font-lock-ensure) + (with-no-warnings + (font-lock-fontify-buffer)))) (let (next (pos (point-min))) (while (setq next (next-single-property-change pos 'face)) (put-text-property pos next 'font-lock-face |
