changeset 46249:54c4053e954f

(font-lock-default-unfontify-region): Use remove-list-of-text-properties. (font-lock-extra-managed-props): Doc fix.
author Stefan Monnier <monnier@iro.umontreal.ca>
date Mon, 08 Jul 2002 01:30:44 +0000
parents 345d4d775bf0
children 2c383709a149
files lisp/font-lock.el
diffstat 1 files changed, 4 insertions(+), 7 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/font-lock.el	Mon Jul 08 01:21:41 2002 +0000
+++ b/lisp/font-lock.el	Mon Jul 08 01:30:44 2002 +0000
@@ -980,19 +980,16 @@
 (defvar font-lock-extra-managed-props nil
   "Additional text properties managed by font-lock.
 This is used by `font-lock-default-unfontify-region' to decide
-what properties to clear before refontifying a region.
-Since it is more or less directly passed to `remove-text-properties',
-it should have the shape of a property list (i.e. every other element
-is ignored).")
+what properties to clear before refontifying a region.")
 
 (defun font-lock-default-unfontify-region (beg end)
   (save-buffer-state nil
-    (remove-text-properties
+    (remove-list-of-text-properties
      beg end (append
 	      font-lock-extra-managed-props
 	      (if font-lock-syntactic-keywords
-		  '(face nil syntax-table nil font-lock-multiline nil)
-		'(face nil font-lock-multiline nil))))))
+		  '(syntax-table face font-lock-multiline)
+		'(face font-lock-multiline))))))
 
 ;; Called when any modification is made to buffer text.
 (defun font-lock-after-change-function (beg end old-len)