emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] Changes to emacs/lisp/jit-lock.el


From: Richard M . Stallman
Subject: [Emacs-diffs] Changes to emacs/lisp/jit-lock.el
Date: Sun, 29 May 2005 04:40:37 -0400

Index: emacs/lisp/jit-lock.el
diff -c emacs/lisp/jit-lock.el:1.38 emacs/lisp/jit-lock.el:1.39
*** emacs/lisp/jit-lock.el:1.38 Thu May 19 19:06:18 2005
--- emacs/lisp/jit-lock.el      Sun May 29 08:40:37 2005
***************
*** 298,304 ****
    "Fontify current buffer starting at position START.
  This function is added to `fontification-functions' when `jit-lock-mode'
  is active."
!   (when jit-lock-mode
      (if (null jit-lock-defer-time)
        ;; No deferral.
        (jit-lock-fontify-now start (+ start jit-lock-chunk-size))
--- 298,304 ----
    "Fontify current buffer starting at position START.
  This function is added to `fontification-functions' when `jit-lock-mode'
  is active."
!   (when (and jit-lock-mode (not (memory-full-p)))
      (if (null jit-lock-defer-time)
        ;; No deferral.
        (jit-lock-fontify-now start (+ start jit-lock-chunk-size))
***************
*** 540,546 ****
  This function ensures that lines following the change will be refontified
  in case the syntax of those lines has changed.  Refontification
  will take place when text is fontified stealthily."
!   (when jit-lock-mode
      (save-excursion
        (with-buffer-prepared-for-jit-lock
         ;; It's important that the `fontified' property be set from the
--- 540,546 ----
  This function ensures that lines following the change will be refontified
  in case the syntax of those lines has changed.  Refontification
  will take place when text is fontified stealthily."
!   (when (and jit-lock-mode (not (memory-full-p)))
      (save-excursion
        (with-buffer-prepared-for-jit-lock
         ;; It's important that the `fontified' property be set from the




reply via email to

[Prev in Thread] Current Thread [Next in Thread]