diff options
| author | Stefan Monnier | 2004-12-07 04:58:36 +0000 |
|---|---|---|
| committer | Stefan Monnier | 2004-12-07 04:58:36 +0000 |
| commit | 516eb29c738876d545c59d1c9b47a793ffd835cc (patch) | |
| tree | 4fe606cc13d004a4d66d0aac72bd97b31c458b17 | |
| parent | 33c886d07a397669cb2b1091ac110d625abbaf5d (diff) | |
| download | emacs-516eb29c738876d545c59d1c9b47a793ffd835cc.tar.gz emacs-516eb29c738876d545c59d1c9b47a793ffd835cc.zip | |
(font-lock-unfontify-region): Save buffer state.
(font-lock-default-unfontify-region): Dont' save buffer state any more.
| -rw-r--r-- | lisp/font-lock.el | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/lisp/font-lock.el b/lisp/font-lock.el index c17949c0c97..90d4aa0adeb 100644 --- a/lisp/font-lock.el +++ b/lisp/font-lock.el | |||
| @@ -958,7 +958,8 @@ The value of this variable is used when Font Lock mode is turned on." | |||
| 958 | (funcall font-lock-fontify-region-function beg end loudly)) | 958 | (funcall font-lock-fontify-region-function beg end loudly)) |
| 959 | 959 | ||
| 960 | (defun font-lock-unfontify-region (beg end) | 960 | (defun font-lock-unfontify-region (beg end) |
| 961 | (funcall font-lock-unfontify-region-function beg end)) | 961 | (save-buffer-state nil |
| 962 | (funcall font-lock-unfontify-region-function beg end))) | ||
| 962 | 963 | ||
| 963 | (defun font-lock-default-fontify-buffer () | 964 | (defun font-lock-default-fontify-buffer () |
| 964 | (let ((verbose (if (numberp font-lock-verbose) | 965 | (let ((verbose (if (numberp font-lock-verbose) |
| @@ -1046,13 +1047,12 @@ This is used by `font-lock-default-unfontify-region' to decide | |||
| 1046 | what properties to clear before refontifying a region.") | 1047 | what properties to clear before refontifying a region.") |
| 1047 | 1048 | ||
| 1048 | (defun font-lock-default-unfontify-region (beg end) | 1049 | (defun font-lock-default-unfontify-region (beg end) |
| 1049 | (save-buffer-state nil | 1050 | (remove-list-of-text-properties |
| 1050 | (remove-list-of-text-properties | 1051 | beg end (append |
| 1051 | beg end (append | 1052 | font-lock-extra-managed-props |
| 1052 | font-lock-extra-managed-props | 1053 | (if font-lock-syntactic-keywords |
| 1053 | (if font-lock-syntactic-keywords | 1054 | '(syntax-table face font-lock-multiline) |
| 1054 | '(syntax-table face font-lock-multiline) | 1055 | '(face font-lock-multiline))))) |
| 1055 | '(face font-lock-multiline)))))) | ||
| 1056 | 1056 | ||
| 1057 | ;; Called when any modification is made to buffer text. | 1057 | ;; Called when any modification is made to buffer text. |
| 1058 | (defun font-lock-after-change-function (beg end old-len) | 1058 | (defun font-lock-after-change-function (beg end old-len) |