diff options
| author | Lars Ingebrigtsen | 2019-10-30 15:39:44 +0100 |
|---|---|---|
| committer | Lars Ingebrigtsen | 2019-10-30 15:39:44 +0100 |
| commit | f8134d2753e4abb7a12d87af731d2ad213bb5bd1 (patch) | |
| tree | dfd7a3c4d8f5737d7d36c38c35d8e18cb813fd06 | |
| parent | b996117fe5d561d86665c23f7012871e345a6e77 (diff) | |
| download | emacs-f8134d2753e4abb7a12d87af731d2ad213bb5bd1.tar.gz emacs-f8134d2753e4abb7a12d87af731d2ad213bb5bd1.zip | |
Clear more data in font-lock-refontify to ensure refontifying
* lisp/font-lock.el (font-lock-refontify): Clear out even more data.
| -rw-r--r-- | lisp/font-lock.el | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lisp/font-lock.el b/lisp/font-lock.el index 2c91586c99d..ef0e2dc0458 100644 --- a/lisp/font-lock.el +++ b/lisp/font-lock.el | |||
| @@ -1106,7 +1106,8 @@ This functions is a convenience functions when developing font | |||
| 1106 | locking for a mode, and is not meant to be called from lisp functions." | 1106 | locking for a mode, and is not meant to be called from lisp functions." |
| 1107 | (interactive) | 1107 | (interactive) |
| 1108 | (declare (interactive-only t)) | 1108 | (declare (interactive-only t)) |
| 1109 | (setq font-lock-major-mode nil) | 1109 | (setq font-lock-major-mode nil |
| 1110 | syntax-propertize--done -1) | ||
| 1110 | (font-lock-set-defaults) | 1111 | (font-lock-set-defaults) |
| 1111 | (save-excursion | 1112 | (save-excursion |
| 1112 | (font-lock-fontify-region (point-min) (point-max)))) | 1113 | (font-lock-fontify-region (point-min) (point-max)))) |