]> git.eshelyaron.com Git - emacs.git/commitdiff
(occur-accumulate-lines, occur-engine):
authorJuri Linkov <juri@jurta.org>
Fri, 17 Dec 2004 16:58:54 +0000 (16:58 +0000)
committerJuri Linkov <juri@jurta.org>
Fri, 17 Dec 2004 16:58:54 +0000 (16:58 +0000)
Make forcing deferred font-lock fontification jit-specific.

lisp/ChangeLog
lisp/replace.el

index e973b48e81404da24cfed39086ab7fe62452f2a6..48efe0b4f2561768eaefcf67a0f5a5089e8b5311 100644 (file)
@@ -1,3 +1,8 @@
+2004-12-17  Juri Linkov  <juri@jurta.org>
+
+       * replace.el (occur-accumulate-lines, occur-engine):
+       Make forcing deferred font-lock fontification jit-specific.
+
 2004-12-17  Kim F. Storm  <storm@cua.dk>
 
        * mouse.el (mouse-1-click-follows-link): New defcustom.
index 8f81a53bf7e1e5e4a304dbca5af1a7422d20e77e..775ad0ffb0512b80272a8e85613aaf5cc0e3af82 100644 (file)
@@ -799,9 +799,9 @@ If the value is nil, don't highlight the buffer names specially."
        (setq count (+ count (if forwardp -1 1)))
        (setq beg (line-beginning-position)
              end (line-end-position))
-       (if (and keep-props font-lock-mode
+       (if (and keep-props (boundp 'jit-lock-mode) jit-lock-mode
                 (text-property-not-all beg end 'fontified t))
-           (font-lock-fontify-region beg end))
+           (jit-lock-fontify-now beg end))
        (push
         (funcall (if keep-props
                      #'buffer-substring
@@ -1008,9 +1008,9 @@ See also `multi-occur'."
                            endpt (line-end-position)))
                    (setq marker (make-marker))
                    (set-marker marker matchbeg)
-                   (if (and keep-props font-lock-mode
+                   (if (and keep-props (boundp 'jit-lock-mode) jit-lock-mode
                             (text-property-not-all begpt endpt 'fontified t))
-                       (font-lock-fontify-region begpt endpt))
+                       (jit-lock-fontify-now begpt endpt))
                    (setq curstring (buffer-substring begpt endpt))
                    ;; Depropertize the string, and maybe
                    ;; highlight the matches