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

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

Re: How to *completely* disable font-lock mode in my .emacs?


From: Kevin Rodgers
Subject: Re: How to *completely* disable font-lock mode in my .emacs?
Date: Fri, 30 Apr 2004 12:40:07 -0600
User-agent: Mozilla/5.0 (X11; U; SunOS i86pc; en-US; rv:0.9.4.1) Gecko/20020406 Netscape6/6.2.2

Eric Smith wrote:
> I wrote:
>>I had previously tried (global-font-lock-mode nil), which did
>>not have the desired effect.  It never occurred to me to use -1.
>
> Kevin Rodgers <address@hidden> writes:
>>Did it occur to you to read the function's doc string with `C-h f'?
>
> I thought I had done that, but apparently not.  I must have found
> mention of the function elsewhere.

Trust, but verify.

> So either nil is positive (which seems somewhat unlikely), or the
> documentation for the function is incorrect.

Here is the actual doc string:

| global-font-lock-mode is an interactive compiled Lisp function in `font-lock'.
| (global-font-lock-mode &optional ARG DUMMY)
|
| Toggle Font-Lock mode in every buffer.
| With prefix ARG, turn Global-Font-Lock mode on if and only if ARG is positive.
| Font-Lock mode is actually not turned on in every buffer but only in those
| in which `turn-on-font-lock-if-enabled' turns it on.

Note that the argument is optional; when it is not specified, the mode
is toggled; and a nil value for an optional arg is the same thing as
leaving it unspecified.

--
Kevin Rodgers



reply via email to

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