(jit-lock-after-change): If font-lock-multiline
authorGerd Moellmann <gerd@gnu.org>
Fri, 19 Jan 2001 13:29:05 +0000 (13:29 +0000)
committerGerd Moellmann <gerd@gnu.org>
Fri, 19 Jan 2001 13:29:05 +0000 (13:29 +0000)
is nil, don't check the `font-lock-multiline' text property.

lisp/ChangeLog
lisp/jit-lock.el

index c33ceb0..0122867 100644 (file)
@@ -1,3 +1,8 @@
+2001-01-19  Gerd Moellmann  <gerd@gnu.org>
+
+       * jit-lock.el (jit-lock-after-change): If font-lock-multiline
+       is nil, don't check the `font-lock-multiline' text property.
+
 2001-01-19  Michael Kifer  <kifer@cs.sunysb.edu>
 
        * viper.el: Call initial-major-mode on startup.
index 9cd9d29..5fa93f0 100644 (file)
@@ -422,7 +422,8 @@ will take place when text is fontified stealthily."
       (with-buffer-prepared-for-jit-lock
        ;; If we're in text that matches a multi-line font-lock pattern,
        ;; make sure the whole text will be redisplayed.
-       (when (get-text-property start 'font-lock-multiline)
+       (when (and font-lock-multiline
+                 (get-text-property start 'font-lock-multiline))
         (setq start (or (previous-single-property-change
                          start 'font-lock-multiline)
                         (point-min))))