changeset 29709:69ac77ea153c

(font-lock-after-fontify-buffer) (font-lock-after-unfontify-buffer): No need to call back to jit-lock.
author Stefan Monnier <monnier@iro.umontreal.ca>
date Sat, 17 Jun 2000 17:21:54 +0000
parents f37b857741b1
children 684342d36151
files lisp/font-lock.el
diffstat 1 files changed, 12 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/font-lock.el	Sat Jun 17 17:17:35 2000 +0000
+++ b/lisp/font-lock.el	Sat Jun 17 17:21:54 2000 +0000
@@ -1098,16 +1098,23 @@
 (defun font-lock-after-fontify-buffer ()
   (cond (fast-lock-mode
 	 (fast-lock-after-fontify-buffer))
-	(jit-lock-mode
-	 (jit-lock-after-fontify-buffer))
+	;; Useless now that jit-lock intercepts font-lock-fontify-buffer.  -sm
+	;; (jit-lock-mode
+	;;  (jit-lock-after-fontify-buffer))
 	(lazy-lock-mode
 	 (lazy-lock-after-fontify-buffer))))
 
 (defun font-lock-after-unfontify-buffer ()
   (cond (fast-lock-mode
 	 (fast-lock-after-unfontify-buffer))
-	(jit-lock-mode
-	 (jit-lock-after-unfontify-buffer))
+	;; Useless as well.  It's only called when:
+	;; - turning off font-lock: it does not matter if we leave spurious
+	;;   `fontified' text props around since jit-lock-mode is also off.
+	;; - font-lock-default-fontify-buffer fails: this is not run
+	;;   any more anyway.   -sm
+	;; 
+	;; (jit-lock-mode
+	;;  (jit-lock-after-unfontify-buffer))
 	(lazy-lock-mode
 	 (lazy-lock-after-unfontify-buffer))))
 
@@ -3163,6 +3170,7 @@
 
 ;; Install ourselves:
 
+;; Useful for the popup-menu for mouse-3 on the modeline.
 (unless (assq 'font-lock-mode minor-mode-alist)
   (push '(font-lock-mode nil) minor-mode-alist))