]> git.eshelyaron.com Git - emacs.git/commitdiff
(font-lock-default-unfontify-region):
authorRichard M. Stallman <rms@gnu.org>
Thu, 28 Jan 1999 19:45:13 +0000 (19:45 +0000)
committerRichard M. Stallman <rms@gnu.org>
Thu, 28 Jan 1999 19:45:13 +0000 (19:45 +0000)
If not font-lock-syntactic-keywords, don't remove syntax-table prop.

lisp/font-lock.el

index 36ed0c0570abbd12c9e228e781639dc14c4eff7e..7dbe8d08d9cf15c41cf34f86c0aae9d5fba5bd7a 100644 (file)
@@ -1090,7 +1090,9 @@ The value of this variable is used when Font Lock mode is turned on."
 
 (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)