changeset 24216:45e1b3418311

(font-lock-default-unfontify-region): If not font-lock-syntactic-keywords, don't remove syntax-table prop.
author Richard M. Stallman <rms@gnu.org>
date Thu, 28 Jan 1999 19:45:13 +0000
parents 6e1f6e29422a
children 37a08636670b
files lisp/font-lock.el
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/font-lock.el	Thu Jan 28 16:30:23 1999 +0000
+++ b/lisp/font-lock.el	Thu Jan 28 19:45:13 1999 +0000
@@ -1090,7 +1090,9 @@
 
 (defun font-lock-default-unfontify-region (beg end)
   (save-buffer-state nil
-    (remove-text-properties beg end '(face nil syntax-table nil))))
+    (if font-lock-syntactic-keywords
+	(remove-text-properties beg end '(face nil syntax-table nil))
+      (remove-text-properties beg end '(face nil)))))
 
 ;; Called when any modification is made to buffer text.
 (defun font-lock-after-change-function (beg end old-len)