From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Bob Proulx Newsgroups: gmane.emacs.help Subject: Re: syntax highlighting Date: Mon, 17 Nov 2014 19:15:40 -0700 Message-ID: <20141117190803126431455@bob.proulx.com> References: <87d28m1usd.fsf@robertthorpeconsulting.com> <20141116220147423535443@bob.proulx.com> <20141117125312.1c835e6e@freedom-laptop> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1416276972 2461 80.91.229.3 (18 Nov 2014 02:16:12 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 18 Nov 2014 02:16:12 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Nov 18 03:16:05 2014 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1XqYKr-0005zA-FT for geh-help-gnu-emacs@m.gmane.org; Tue, 18 Nov 2014 03:16:05 +0100 Original-Received: from localhost ([::1]:50994 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XqYKq-0002rf-R7 for geh-help-gnu-emacs@m.gmane.org; Mon, 17 Nov 2014 21:16:04 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:38563) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XqYKa-0002rT-52 for help-gnu-emacs@gnu.org; Mon, 17 Nov 2014 21:15:54 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XqYKT-0000GK-UL for help-gnu-emacs@gnu.org; Mon, 17 Nov 2014 21:15:48 -0500 Original-Received: from joseki.proulx.com ([216.17.153.58]:38164) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XqYKT-0000G7-NE for help-gnu-emacs@gnu.org; Mon, 17 Nov 2014 21:15:41 -0500 Original-Received: from hysteria.proulx.com (hysteria.proulx.com [192.168.230.119]) by joseki.proulx.com (Postfix) with ESMTP id D043921232 for ; Mon, 17 Nov 2014 19:15:40 -0700 (MST) Original-Received: by hysteria.proulx.com (Postfix, from userid 1000) id B5C0B2DC35; Mon, 17 Nov 2014 19:15:40 -0700 (MST) Mail-Followup-To: help-gnu-emacs@gnu.org Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.23 (2014-03-12) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 216.17.153.58 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:101011 Archived-At: Stefan Monnier wrote: > Bruno Felix Rezende Ribeiro wrote: > > 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. >=20 > For that reason, I recommend to use -1 and 1 to mean respectively "off" > and "on". When I posted my response I almost posted this: (setq font-lock-global-modes nil) But then I checked the documentation to verify that what I was going to post was accurate. I found this in the emacs manual. Type =E2=80=98M-x global-font-lock-mode=E2=80=99 to toggle Font Lock= mode in all buffers. To impose this setting for future Emacs sessions, customize the variable =E2=80=98global-font-lock-mode=E2=80=99 (*note Easy Custom= ization::), or add the following line to your init file: (global-font-lock-mode 0) And so I didn't post (setq font-lock-global-modes nil) which I thought was most plain and simple and instead posted the documented interface. That is my reward for having read and followed the documentation. But you are both completely right that 0 is ambiguous there. That is terrible. It should be t or nil to be more consistent. Or any of a number of other possibilities. Unfortunately it is already the documented interface. Hate proposing changing it since it will break anyone who has followed directions. Bob