diff options
| author | Stefan Monnier | 2002-07-08 01:30:44 +0000 |
|---|---|---|
| committer | Stefan Monnier | 2002-07-08 01:30:44 +0000 |
| commit | 4c02ca4625a9f1588817d94e93298336865d6462 (patch) | |
| tree | c58e2cf9052042369388c88c4ffe8a1fca6940d2 | |
| parent | 1ff4ace5850fad676c226c8d2753efee7faed50a (diff) | |
| download | emacs-4c02ca4625a9f1588817d94e93298336865d6462.tar.gz emacs-4c02ca4625a9f1588817d94e93298336865d6462.zip | |
(font-lock-default-unfontify-region): Use remove-list-of-text-properties.
(font-lock-extra-managed-props): Doc fix.
| -rw-r--r-- | lisp/font-lock.el | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/lisp/font-lock.el b/lisp/font-lock.el index fc9fe45954b..581f9c6b925 100644 --- a/lisp/font-lock.el +++ b/lisp/font-lock.el | |||
| @@ -980,19 +980,16 @@ The value of this variable is used when Font Lock mode is turned on." | |||
| 980 | (defvar font-lock-extra-managed-props nil | 980 | (defvar font-lock-extra-managed-props nil |
| 981 | "Additional text properties managed by font-lock. | 981 | "Additional text properties managed by font-lock. |
| 982 | This is used by `font-lock-default-unfontify-region' to decide | 982 | This is used by `font-lock-default-unfontify-region' to decide |
| 983 | what properties to clear before refontifying a region. | 983 | what properties to clear before refontifying a region.") |
| 984 | Since it is more or less directly passed to `remove-text-properties', | ||
| 985 | it should have the shape of a property list (i.e. every other element | ||
| 986 | is ignored).") | ||
| 987 | 984 | ||
| 988 | (defun font-lock-default-unfontify-region (beg end) | 985 | (defun font-lock-default-unfontify-region (beg end) |
| 989 | (save-buffer-state nil | 986 | (save-buffer-state nil |
| 990 | (remove-text-properties | 987 | (remove-list-of-text-properties |
| 991 | beg end (append | 988 | beg end (append |
| 992 | font-lock-extra-managed-props | 989 | font-lock-extra-managed-props |
| 993 | (if font-lock-syntactic-keywords | 990 | (if font-lock-syntactic-keywords |
| 994 | '(face nil syntax-table nil font-lock-multiline nil) | 991 | '(syntax-table face font-lock-multiline) |
| 995 | '(face nil font-lock-multiline nil)))))) | 992 | '(face font-lock-multiline)))))) |
| 996 | 993 | ||
| 997 | ;; Called when any modification is made to buffer text. | 994 | ;; Called when any modification is made to buffer text. |
| 998 | (defun font-lock-after-change-function (beg end old-len) | 995 | (defun font-lock-after-change-function (beg end old-len) |