changeset 65318:b6c099a49763

(lazy-lock-mode): Don't try to turn on font-lock-mode if it's off. Print a warning instead.
author Stefan Monnier <monnier@iro.umontreal.ca>
date Fri, 02 Sep 2005 18:40:20 +0000
parents 547765a33579
children 44f6057f47c7
files lisp/obsolete/lazy-lock.el
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/obsolete/lazy-lock.el	Fri Sep 02 18:39:42 2005 +0000
+++ b/lisp/obsolete/lazy-lock.el	Fri Sep 02 18:40:20 2005 +0000
@@ -526,8 +526,8 @@
 		   (if arg (> (prefix-numeric-value arg) 0) (not was-on)))))
     (cond ((and now-on (not font-lock-mode))
 	   ;; Turned on `lazy-lock-mode' rather than `font-lock-mode'.
-	   (let ((font-lock-support-mode 'lazy-lock-mode))
-	     (font-lock-mode t)))
+           (message "Use font-lock-support-mode rather than calling lazy-lock-mode")
+           (sit-for 2))
 	  (now-on
 	   ;; Turn ourselves on.
 	   (set (make-local-variable 'lazy-lock-mode) t)