From 6d75d6666b8660f36f1200a32b59f794b88380cc Mon Sep 17 00:00:00 2001 From: Stefan Monnier Date: Fri, 2 Sep 2005 18:40:20 +0000 Subject: [PATCH] (lazy-lock-mode): Don't try to turn on font-lock-mode if it's off. Print a warning instead. --- lisp/obsolete/lazy-lock.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lisp/obsolete/lazy-lock.el b/lisp/obsolete/lazy-lock.el index d21d6e232b0..eaef84a6ab4 100644 --- a/lisp/obsolete/lazy-lock.el +++ b/lisp/obsolete/lazy-lock.el @@ -526,8 +526,8 @@ verbosity is controlled via the variable `lazy-lock-stealth-verbose'." (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) -- 2.39.2