From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#22313: 24.3; on global-font-lock-mode's documentation Date: Tue, 05 Jan 2016 20:42:02 +0200 Message-ID: <83h9ir50n9.fsf@gnu.org> References: <0q1t9whqnb.fsf@DESENV-PC3.i-did-not-set--mail-host-address--so-tickle-me> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1452019405 15989 80.91.229.3 (5 Jan 2016 18:43:25 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 5 Jan 2016 18:43:25 +0000 (UTC) Cc: 22313@debbugs.gnu.org To: dbastos@toledo.com Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Jan 05 19:43:10 2016 Return-path: Envelope-to: geb-bug-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 1aGWZZ-0004Px-Ru for geb-bug-gnu-emacs@m.gmane.org; Tue, 05 Jan 2016 19:43:10 +0100 Original-Received: from localhost ([::1]:50988 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aGWZZ-0007f6-7w for geb-bug-gnu-emacs@m.gmane.org; Tue, 05 Jan 2016 13:43:09 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:40328) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aGWZV-0007ey-Ps for bug-gnu-emacs@gnu.org; Tue, 05 Jan 2016 13:43:06 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aGWZS-0004qw-L6 for bug-gnu-emacs@gnu.org; Tue, 05 Jan 2016 13:43:05 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:50890) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aGWZS-0004qr-He for bug-gnu-emacs@gnu.org; Tue, 05 Jan 2016 13:43:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84) (envelope-from ) id 1aGWZS-0005cG-D3 for bug-gnu-emacs@gnu.org; Tue, 05 Jan 2016 13:43:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 05 Jan 2016 18:43:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 22313 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 22313-submit@debbugs.gnu.org id=B22313.145201932821520 (code B ref 22313); Tue, 05 Jan 2016 18:43:02 +0000 Original-Received: (at 22313) by debbugs.gnu.org; 5 Jan 2016 18:42:08 +0000 Original-Received: from localhost ([127.0.0.1]:39110 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aGWYZ-0005b1-Td for submit@debbugs.gnu.org; Tue, 05 Jan 2016 13:42:08 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:49250) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aGWYX-0005aV-Gj for 22313@debbugs.gnu.org; Tue, 05 Jan 2016 13:42:05 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aGWYP-0004dl-4k for 22313@debbugs.gnu.org; Tue, 05 Jan 2016 13:42:00 -0500 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:57743) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aGWYP-0004dh-1O; Tue, 05 Jan 2016 13:41:57 -0500 Original-Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:4055 helo=HOME-C4E4A596F7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1aGWYO-0001Yl-7L; Tue, 05 Jan 2016 13:41:56 -0500 In-reply-to: <0q1t9whqnb.fsf@DESENV-PC3.i-did-not-set--mail-host-address--so-tickle-me> (dbastos@toledo.com) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:111257 Archived-At: > From: dbastos@toledo.com > Date: Tue, 05 Jan 2016 15:39:36 -0200 > > I ran emacs -Q and so font-lock-mode came up enabled. Good. I then ran > > (global-font-lock-mode nil) > > and it did turn off. Looking at the documentation, I read the passage > below. It makes me think that the argument of nil, since that's not > positive, would disable font-lock-mode, but it doesn't. The function > really needs a negative argument. The documentation should be fixed. Sorry, I don't understand which part of the documentation needs fixing. Can you clarify? This part: > If called from Lisp, enable the mode if ARG is omitted or nil. clearly says that calling the function with nil as its argument _enables_ the mode, not disables it. As for being not positive, nil is not a number, so its sign is really undefined, I think.