[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: syntax highlighting
From: |
Bruno Félix Rezende Ribeiro |
Subject: |
Re: syntax highlighting |
Date: |
Mon, 17 Nov 2014 12:53:12 -0200 |
Em Sun, 16 Nov 2014 22:04:18 -0700
Bob Proulx <bob@proulx.com> escreveu:
> However for font lock mode it takes an optional argument.
>
> (global-font-lock-mode 0)
>
> The docs say:
>
> (global-font-lock-mode &optional ARG)
>
> Toggle Font-Lock mode in all buffers.
> With prefix ARG, enable Global-Font-Lock mode if ARG is positive;
> otherwise, disable it. If called from Lisp, enable the mode if
> ARG is omitted or nil.
>
> So giving it a 0 argument definitely turns it off and does not toggle
> it.
That docstring, and all the others describing minor mode
(de)activation commands are somewhat ambiguous to me, because, as in
math literature, "positive" could or not include the number '0',
depending on author's definition. However, "strictly positive" always
excludes zero, while "non-negative" always includes it. So, I think
the latter would be a more appropriate term, instead of simply
"positive".
Ps: Emacs developers, please, take this as a bug report ;-).
--
,= ,-_-. =. Bruno Félix Rezende Ribeiro (oitofelix) [0x28D618AF]
((_/)o o(\_)) There is no system but GNU;
`-'(. .)`-' GNU Linux-Libre is one of its official kernels;
\_/ All software must be free as in freedom;
- syntax highlighting, mzp3769, 2014/11/15
- Re: syntax highlighting, Emanuel Berg, 2014/11/16
- Re: syntax highlighting, M P, 2014/11/16
- Re: syntax highlighting, Bob Proulx, 2014/11/16
- Re: syntax highlighting, Emanuel Berg, 2014/11/16
- Message not available
- Re: syntax highlighting, M P, 2014/11/16
- Re: syntax highlighting, Robert Thorpe, 2014/11/16
- Re: syntax highlighting, Bob Proulx, 2014/11/17
- Re: syntax highlighting,
Bruno Félix Rezende Ribeiro <=
- Re: syntax highlighting, Stefan Monnier, 2014/11/17
- Re: syntax highlighting, Bob Proulx, 2014/11/17
- Re: syntax highlighting, Bruno Félix Rezende Ribeiro, 2014/11/18
- Re: syntax highlighting, Bob Proulx, 2014/11/18
- Message not available
- Re: syntax highlighting, Emanuel Berg, 2014/11/17
- Message not available
- Re: syntax highlighting, Emanuel Berg, 2014/11/17
Re: syntax highlighting, Robert Thorpe, 2014/11/16