bug-gnu-emacs
[Top][All Lists]
Advanced

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

documentation deficiency: turning off font-lock-mode with certainty


From: Dan Jacobson
Subject: documentation deficiency: turning off font-lock-mode with certainty
Date: 22 Jan 2001 11:36:37 +0800
User-agent: Gnus/5.0807 (Gnus v5.8.7) Emacs/20.7

In help, the user is presented with no way to turn off font-lock-mode
with certainty, I mean just saying (font-lock-mode) in a script will
also end up turning it it on if its off,
---------
font-lock-mode is an interactive Lisp function in `font-lock'.
(font-lock-mode &optional ARG)

Toggle Font Lock mode.
With arg, turn Font Lock mode on if and only if arg is positive...
[uh oh, same doc probem with global-font-lock-mode]
---------
Ok, then with no arg it is a toggle, ok. With negative or 0 arg.?
Hmm, I'll try it: (font-lock-mode -1)^X^E, ok, seems to turn it off,
OK, mention this.  Also give this example I found in the source:
  ;; Turn off Font Lock mode if it's on.
  (when font-lock-mode
    (font-lock-mode))
-- 
http://www.geocities.com/jidanni Tel886-4-25854780 e-mail:restore .com. 積丹尼



reply via email to

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