From unknown Tue Aug 19 05:28:44 2025 X-Loop: help-debbugs@gnu.org Subject: bug#22313: 24.3; on global-font-lock-mode's documentation Resent-From: dbastos@toledo.com Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 05 Jan 2016 17:43:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 22313 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 22313@debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.145201576515872 (code B ref -1); Tue, 05 Jan 2016 17:43:02 +0000 Received: (at submit) by debbugs.gnu.org; 5 Jan 2016 17:42:45 +0000 Received: from localhost ([127.0.0.1]:39062 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aGVd7-00047w-0C for submit@debbugs.gnu.org; Tue, 05 Jan 2016 12:42:45 -0500 Received: from eggs.gnu.org ([208.118.235.92]:60280) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aGVcQ-00046R-0k for submit@debbugs.gnu.org; Tue, 05 Jan 2016 12:42:02 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aGVcJ-0004FF-NH for submit@debbugs.gnu.org; Tue, 05 Jan 2016 12:41:56 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,T_DKIM_INVALID autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:38230) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aGVcJ-0004FB-KE for submit@debbugs.gnu.org; Tue, 05 Jan 2016 12:41:55 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:51238) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aGVcI-0008Lt-FK for bug-gnu-emacs@gnu.org; Tue, 05 Jan 2016 12:41:55 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aGVcF-0004D8-7l for bug-gnu-emacs@gnu.org; Tue, 05 Jan 2016 12:41:54 -0500 Received: from mail-qg0-x229.google.com ([2607:f8b0:400d:c04::229]:35718) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aGVcF-0004D4-19 for bug-gnu-emacs@gnu.org; Tue, 05 Jan 2016 12:41:51 -0500 Received: by mail-qg0-x229.google.com with SMTP id o11so283749873qge.2 for ; Tue, 05 Jan 2016 09:41:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=toledo-com.20150623.gappssmtp.com; s=20150623; h=from:to:subject:date:message-id:mime-version:content-type; bh=NhruQf2gS+Z+W1GYZramr3hSQl+lMOHocTHhdnaggSA=; b=kGVUjo+Std9hFvmfDS4j/dAZCUsw08qYN1k25L8OQFXbnKHSukfQ6tEOU6EM2d84zG FrN+sDzPvFEcdKd7DOzgvTLG8m4Iab5aTU3a6eiuso+OZjyhsSaNmGMCMBeErknEDG2q jQOTGGcrvDzQm0EUCi7ot/ZeId5U6+Ru8WUUgw/IvQYCfQ7/5V8Q442UrwUds0qZUteq iUJt33gUJlXqZffJki25oX9E4iB7tabDVIQ68n1GncX2Oerw7z8NuwsRVE8jfFtNUyjG 0oyNjTtZh4MsEln9L3C+uBbW6rSvDn45juhllsm1rFmXW2cePx/LW7rS9d3t8ul8JISa 5ioA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:subject:date:message-id:mime-version :content-type; bh=NhruQf2gS+Z+W1GYZramr3hSQl+lMOHocTHhdnaggSA=; b=GxzhLvwGjduLwkQ7D9UQo5/B58St1Rl6rluIKFAEDRR+P3kBGq0o+NXBau8x91MaFa PGaJsnTyrRyQHD0QJFZK87eWIhXZF6vf/Yg+zEyPp6FhZryCQaejE0lI2YVg6iqEKqJV 8AY5YLERujR+thh5NhOFl61iQH7rc6Tp+dK7hZy56OvlDwxAqGSTJq2xJyWFmmAckewd WLYyc+XxWDoYZP4xJ6SvdHzDTu2NeYW8EHtwGnZFPGDGM+myk5RuRW3lz0frM+PzUQlM yQ6aK85IQuH88N64ad01zbvdAEzqOyV0fbpgkUiCCu+vTkfSiuSZ8GUn+7ktjU2v+gLf rLLw== X-Gm-Message-State: ALoCoQmXT1jXo0368a3yR8i+4dLf3ytuMpIaZXCr9JhRAJBZ/sa2uKn+xcpVtnN1KvEj+MT3CVK9UxIgHl055nPBMhZorFbg1g== X-Received: by 10.140.161.9 with SMTP id h9mr48863729qhh.82.1452015710333; Tue, 05 Jan 2016 09:41:50 -0800 (PST) Received: from DESENV-PC3 (fttx.cable-177122217.predialnet.com.br. [177.12.2.217]) by smtp.gmail.com with ESMTPSA id g88sm40056798qge.11.2016.01.05.09.41.48 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 05 Jan 2016 09:41:49 -0800 (PST) From: dbastos@toledo.com X-Google-Original-From: daniel.bastos@toledo.com Date: Tue, 05 Jan 2016 15:39:36 -0200 Message-ID: <0q1t9whqnb.fsf@DESENV-PC3.i-did-not-set--mail-host-address--so-tickle-me> MIME-Version: 1.0 Content-Type: text/plain X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -5.0 (-----) X-Mailman-Approved-At: Tue, 05 Jan 2016 12:42:44 -0500 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) 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. --8<---------------cut here---------------start------------->8--- global-font-lock-mode is an interactive compiled Lisp function in `font-core.el'. (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. Font-Lock mode is enabled in all buffers where `turn-on-font-lock-if-desired' would do it. See `font-lock-mode' for more information on Font-Lock mode. --8<---------------cut here---------------end--------------->8--- In GNU Emacs 24.3.1 (i386-mingw-nt6.1.7601) of 2013-03-17 on MARVIN Windowing system distributor `Microsoft Corp.', version 6.1.7601 Configured using: `configure --with-gcc (4.7) --cflags -ID:/devel/emacs/libs/libXpm-3.5.8/include -ID:/devel/emacs/libs/libXpm-3.5.8/src -ID:/devel/emacs/libs/libpng-dev_1.4.3-1/include -ID:/devel/emacs/libs/zlib-dev_1.2.5-2/include -ID:/devel/emacs/libs/giflib-4.1.4-1/include -ID:/devel/emacs/libs/jpeg-6b-4/include -ID:/devel/emacs/libs/tiff-3.8.2-1/include -ID:/devel/emacs/libs/gnutls-3.0.9/include -ID:/devel/emacs/libs/libiconv-1.13.1-1-dev/include -ID:/devel/emacs/libs/libxml2-2.7.8/include/libxml2' Important settings: value of $LANG: PTB locale-coding-system: cp1252 default enable-multibyte-characters: t Major mode: Lisp Interaction Minor modes in effect: tooltip-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t Recent input: ( g l o b a l - f o n t - l o c k - m o d e SPC n i l ) C-x C-e C-u C-h f g l o b a l - f o n t - l o c k - m o d e M-x i n s e r t SPC b u f C-x 1 Recent messages: For information about GNU Emacs and the GNU system, type C-h C-a. t Type C-x 1 to delete the help window. Mark set Load-path shadows: None found. Features: (shadow sort gnus-util mail-extr emacsbug message format-spec rfc822 mml mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils help-mode easymenu help-fns time-date tooltip ediff-hook vc-hooks lisp-float-type mwheel dos-w32 ls-lisp w32-common-fns disp-table w32-win w32-vars tool-bar dnd fontset image regexp-opt fringe tabulated-list newcomment lisp-mode register page menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core frame cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese case-table epa-hook jka-cmpr-hook help simple abbrev minibuffer loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote make-network-process w32 multi-tty emacs) From unknown Tue Aug 19 05:28:44 2025 X-Loop: help-debbugs@gnu.org Subject: bug#22313: 24.3; on global-font-lock-mode's documentation 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: To: dbastos@toledo.com Cc: 22313@debbugs.gnu.org Reply-To: Eli Zaretskii Received: via spool by 22313-submit@debbugs.gnu.org id=B22313.145201932821520 (code B ref 22313); Tue, 05 Jan 2016 18:43:02 +0000 Received: (at 22313) by debbugs.gnu.org; 5 Jan 2016 18:42:08 +0000 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 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 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 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-0.5 required=5.0 tests=BAYES_05,RP_MATCHES_RCVD autolearn=disabled version=3.3.2 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 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 Date: Tue, 05 Jan 2016 20:42:02 +0200 Message-Id: <83h9ir50n9.fsf@gnu.org> From: Eli Zaretskii In-reply-to: <0q1t9whqnb.fsf@DESENV-PC3.i-did-not-set--mail-host-address--so-tickle-me> (dbastos@toledo.com) References: <0q1t9whqnb.fsf@DESENV-PC3.i-did-not-set--mail-host-address--so-tickle-me> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) > 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. From unknown Tue Aug 19 05:28:44 2025 X-Loop: help-debbugs@gnu.org Subject: bug#22313: 24.3; on global-font-lock-mode's documentation Resent-From: Daniel Bastos Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 05 Jan 2016 19:20: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: To: Eli Zaretskii Cc: 22313@debbugs.gnu.org Received: via spool by 22313-submit@debbugs.gnu.org id=B22313.145202159531344 (code B ref 22313); Tue, 05 Jan 2016 19:20:02 +0000 Received: (at 22313) by debbugs.gnu.org; 5 Jan 2016 19:19:55 +0000 Received: from localhost ([127.0.0.1]:39134 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aGX98-00089U-W4 for submit@debbugs.gnu.org; Tue, 05 Jan 2016 14:19:55 -0500 Received: from mail-qg0-f46.google.com ([209.85.192.46]:33377) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aGX97-00089G-5Q for 22313@debbugs.gnu.org; Tue, 05 Jan 2016 14:19:53 -0500 Received: by mail-qg0-f46.google.com with SMTP id b35so156097170qge.0 for <22313@debbugs.gnu.org>; Tue, 05 Jan 2016 11:19:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=toledo-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-type; bh=tLikyUrX6m7T8z3f1W+ekngQ1ZBYltzZvD30bqqJTfY=; b=dDqVEphSU1bHs8z9rX3FTRZFlKp/u7gvznaRDkx/3CzH+JrEMb2LQz+DDmhrYWobCS 2R/WFCBFDdL+MZpgWNILtiyRnYLBfZkreob9uP8j+1TGVNaFBzZy8Bj6j7+J6DWHBC8A hsUrZBnCLWoaE/C8P/8TEtJJxQ2sIJiT83aO4ZSzSL02UncIVwkDF1vlHnc2CUKKb8Z6 IQewicJ1o/Om51mMvVNIs7ENMH8P8IlCLEvn0NWNmVk+9o5MYQMy2J53tJRAFWeNU2b4 7ZtGK+7zx/bhL3/saLOX1tpJD2++kLvoO2kfjpHxz+45QEVxq7zrI+KlBkzij00VFdbL mS4g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version:content-type; bh=tLikyUrX6m7T8z3f1W+ekngQ1ZBYltzZvD30bqqJTfY=; b=lAYiO8C4QkS+VNNtJt478pFlPI2yKf3QxojlvCAqvzaGf+mEz0M/ho9Jo7UPjcUnKE 1JyBD4VZ3+JtWX0rWbSv4SHRv0YEfnIg5psF6X3kxja0bID1458g6f9//nsGZetbuztn wvxY6uPKj1RPmla+iyxZKsiNk8Rm5nlVvLUb8U+TIf4PHyGhvR+TjlNs0ry3fvnyujzZ 1LDa1B7osBUm4v83cD3WDrqzONhgmj6njjkM87C4lQWEfdQwdXqawA1R125mk3E944Hn K+WVgM1HHKg/ekulSYmbnnkEXRATa2Tk75FIJrpsIGl4itAL0mvaFUeqkPXWFdz7TuzK 7AtQ== X-Gm-Message-State: ALoCoQl71ffQDIL3CbJVUEU0gsDAOyuaXxbvPXo+dinkP99uYW61gglTt5SU4yAs4j3a275PxTpbd/UakrNNj7RlEPHq758hEA== X-Received: by 10.140.178.139 with SMTP id y133mr127768501qhy.92.1452021587752; Tue, 05 Jan 2016 11:19:47 -0800 (PST) Received: from DESENV-PC3 (fttx.cable-177122217.predialnet.com.br. [177.12.2.217]) by smtp.gmail.com with ESMTPSA id s188sm38038709qhc.41.2016.01.05.11.19.46 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 05 Jan 2016 11:19:47 -0800 (PST) From: Daniel Bastos References: <0q1t9whqnb.fsf@DESENV-PC3.i-did-not-set--mail-host-address--so-tickle-me> <83h9ir50n9.fsf@gnu.org> Date: Tue, 05 Jan 2016 17:17:35 -0200 In-Reply-To: <83h9ir50n9.fsf@gnu.org> (Eli Zaretskii's message of "Tue, 05 Jan 2016 20:42:02 +0200") Message-ID: <0q37ub96pc.fsf@toledo.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (windows-nt) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.7 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) Eli Zaretskii writes: >> 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. I'm really sorry. I didn't pay enough attention. For what it's worth, I suppose the "otherwise" threw me off completely and the following sentences didn't take effect in my brain. I'm sorry. From unknown Tue Aug 19 05:28:44 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: dbastos@toledo.com Subject: bug#22313: closed (Re: bug#22313: 24.3; on global-font-lock-mode's documentation) Message-ID: References: <83bn8z4x3t.fsf@gnu.org> <0q1t9whqnb.fsf@DESENV-PC3.i-did-not-set--mail-host-address--so-tickle-me> X-Gnu-PR-Message: they-closed 22313 X-Gnu-PR-Package: emacs Reply-To: 22313@debbugs.gnu.org Date: Tue, 05 Jan 2016 19:59:01 +0000 Content-Type: multipart/mixed; boundary="----------=_1452023941-2510-1" This is a multi-part message in MIME format... ------------=_1452023941-2510-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #22313: 24.3; on global-font-lock-mode's documentation which was filed against the emacs package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 22313@debbugs.gnu.org. --=20 22313: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D22313 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1452023941-2510-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 22313-done) by debbugs.gnu.org; 5 Jan 2016 19:58:35 +0000 Received: from localhost ([127.0.0.1]:39155 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aGXkZ-0000df-A9 for submit@debbugs.gnu.org; Tue, 05 Jan 2016 14:58:35 -0500 Received: from eggs.gnu.org ([208.118.235.92]:42555) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aGXkY-0000dU-J4 for 22313-done@debbugs.gnu.org; Tue, 05 Jan 2016 14:58:34 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aGXkO-0000WB-MK for 22313-done@debbugs.gnu.org; Tue, 05 Jan 2016 14:58:29 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:32887) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aGXkO-0000W7-Ie; Tue, 05 Jan 2016 14:58:24 -0500 Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:4116 helo=HOME-C4E4A596F7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1aGXkN-0007h4-Oa; Tue, 05 Jan 2016 14:58:24 -0500 Date: Tue, 05 Jan 2016 21:58:30 +0200 Message-Id: <83bn8z4x3t.fsf@gnu.org> From: Eli Zaretskii To: Daniel Bastos In-reply-to: <0q37ub96pc.fsf@toledo.com> (message from Daniel Bastos on Tue, 05 Jan 2016 17:17:35 -0200) Subject: Re: bug#22313: 24.3; on global-font-lock-mode's documentation References: <0q1t9whqnb.fsf@DESENV-PC3.i-did-not-set--mail-host-address--so-tickle-me> <83h9ir50n9.fsf@gnu.org> <0q37ub96pc.fsf@toledo.com> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: 22313-done Cc: 22313-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: Eli Zaretskii Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) > From: Daniel Bastos > Cc: 22313@debbugs.gnu.org > Date: Tue, 05 Jan 2016 17:17:35 -0200 > > I'm really sorry. I didn't pay enough attention. For what it's worth, > I suppose the "otherwise" threw me off completely and the following > sentences didn't take effect in my brain. I'm sorry. No need to apologize, mistakes do happen. I'm glad we had this figured out. I'm closing this bug report, then. Thanks. ------------=_1452023941-2510-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 5 Jan 2016 17:42:45 +0000 Received: from localhost ([127.0.0.1]:39062 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aGVd7-00047w-0C for submit@debbugs.gnu.org; Tue, 05 Jan 2016 12:42:45 -0500 Received: from eggs.gnu.org ([208.118.235.92]:60280) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aGVcQ-00046R-0k for submit@debbugs.gnu.org; Tue, 05 Jan 2016 12:42:02 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aGVcJ-0004FF-NH for submit@debbugs.gnu.org; Tue, 05 Jan 2016 12:41:56 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,T_DKIM_INVALID autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:38230) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aGVcJ-0004FB-KE for submit@debbugs.gnu.org; Tue, 05 Jan 2016 12:41:55 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:51238) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aGVcI-0008Lt-FK for bug-gnu-emacs@gnu.org; Tue, 05 Jan 2016 12:41:55 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aGVcF-0004D8-7l for bug-gnu-emacs@gnu.org; Tue, 05 Jan 2016 12:41:54 -0500 Received: from mail-qg0-x229.google.com ([2607:f8b0:400d:c04::229]:35718) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aGVcF-0004D4-19 for bug-gnu-emacs@gnu.org; Tue, 05 Jan 2016 12:41:51 -0500 Received: by mail-qg0-x229.google.com with SMTP id o11so283749873qge.2 for ; Tue, 05 Jan 2016 09:41:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=toledo-com.20150623.gappssmtp.com; s=20150623; h=from:to:subject:date:message-id:mime-version:content-type; bh=NhruQf2gS+Z+W1GYZramr3hSQl+lMOHocTHhdnaggSA=; b=kGVUjo+Std9hFvmfDS4j/dAZCUsw08qYN1k25L8OQFXbnKHSukfQ6tEOU6EM2d84zG FrN+sDzPvFEcdKd7DOzgvTLG8m4Iab5aTU3a6eiuso+OZjyhsSaNmGMCMBeErknEDG2q jQOTGGcrvDzQm0EUCi7ot/ZeId5U6+Ru8WUUgw/IvQYCfQ7/5V8Q442UrwUds0qZUteq iUJt33gUJlXqZffJki25oX9E4iB7tabDVIQ68n1GncX2Oerw7z8NuwsRVE8jfFtNUyjG 0oyNjTtZh4MsEln9L3C+uBbW6rSvDn45juhllsm1rFmXW2cePx/LW7rS9d3t8ul8JISa 5ioA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:subject:date:message-id:mime-version :content-type; bh=NhruQf2gS+Z+W1GYZramr3hSQl+lMOHocTHhdnaggSA=; b=GxzhLvwGjduLwkQ7D9UQo5/B58St1Rl6rluIKFAEDRR+P3kBGq0o+NXBau8x91MaFa PGaJsnTyrRyQHD0QJFZK87eWIhXZF6vf/Yg+zEyPp6FhZryCQaejE0lI2YVg6iqEKqJV 8AY5YLERujR+thh5NhOFl61iQH7rc6Tp+dK7hZy56OvlDwxAqGSTJq2xJyWFmmAckewd WLYyc+XxWDoYZP4xJ6SvdHzDTu2NeYW8EHtwGnZFPGDGM+myk5RuRW3lz0frM+PzUQlM yQ6aK85IQuH88N64ad01zbvdAEzqOyV0fbpgkUiCCu+vTkfSiuSZ8GUn+7ktjU2v+gLf rLLw== X-Gm-Message-State: ALoCoQmXT1jXo0368a3yR8i+4dLf3ytuMpIaZXCr9JhRAJBZ/sa2uKn+xcpVtnN1KvEj+MT3CVK9UxIgHl055nPBMhZorFbg1g== X-Received: by 10.140.161.9 with SMTP id h9mr48863729qhh.82.1452015710333; Tue, 05 Jan 2016 09:41:50 -0800 (PST) Received: from DESENV-PC3 (fttx.cable-177122217.predialnet.com.br. [177.12.2.217]) by smtp.gmail.com with ESMTPSA id g88sm40056798qge.11.2016.01.05.09.41.48 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 05 Jan 2016 09:41:49 -0800 (PST) From: dbastos@toledo.com X-Google-Original-From: daniel.bastos@toledo.com To: bug-gnu-emacs@gnu.org Subject: 24.3; on global-font-lock-mode's documentation Date: Tue, 05 Jan 2016 15:39:36 -0200 Message-ID: <0q1t9whqnb.fsf@DESENV-PC3.i-did-not-set--mail-host-address--so-tickle-me> MIME-Version: 1.0 Content-Type: text/plain X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Tue, 05 Jan 2016 12:42:44 -0500 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) 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. --8<---------------cut here---------------start------------->8--- global-font-lock-mode is an interactive compiled Lisp function in `font-core.el'. (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. Font-Lock mode is enabled in all buffers where `turn-on-font-lock-if-desired' would do it. See `font-lock-mode' for more information on Font-Lock mode. --8<---------------cut here---------------end--------------->8--- In GNU Emacs 24.3.1 (i386-mingw-nt6.1.7601) of 2013-03-17 on MARVIN Windowing system distributor `Microsoft Corp.', version 6.1.7601 Configured using: `configure --with-gcc (4.7) --cflags -ID:/devel/emacs/libs/libXpm-3.5.8/include -ID:/devel/emacs/libs/libXpm-3.5.8/src -ID:/devel/emacs/libs/libpng-dev_1.4.3-1/include -ID:/devel/emacs/libs/zlib-dev_1.2.5-2/include -ID:/devel/emacs/libs/giflib-4.1.4-1/include -ID:/devel/emacs/libs/jpeg-6b-4/include -ID:/devel/emacs/libs/tiff-3.8.2-1/include -ID:/devel/emacs/libs/gnutls-3.0.9/include -ID:/devel/emacs/libs/libiconv-1.13.1-1-dev/include -ID:/devel/emacs/libs/libxml2-2.7.8/include/libxml2' Important settings: value of $LANG: PTB locale-coding-system: cp1252 default enable-multibyte-characters: t Major mode: Lisp Interaction Minor modes in effect: tooltip-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t Recent input: ( g l o b a l - f o n t - l o c k - m o d e SPC n i l ) C-x C-e C-u C-h f g l o b a l - f o n t - l o c k - m o d e M-x i n s e r t SPC b u f C-x 1 Recent messages: For information about GNU Emacs and the GNU system, type C-h C-a. t Type C-x 1 to delete the help window. Mark set Load-path shadows: None found. Features: (shadow sort gnus-util mail-extr emacsbug message format-spec rfc822 mml mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils help-mode easymenu help-fns time-date tooltip ediff-hook vc-hooks lisp-float-type mwheel dos-w32 ls-lisp w32-common-fns disp-table w32-win w32-vars tool-bar dnd fontset image regexp-opt fringe tabulated-list newcomment lisp-mode register page menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core frame cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese case-table epa-hook jka-cmpr-hook help simple abbrev minibuffer loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote make-network-process w32 multi-tty emacs) ------------=_1452023941-2510-1--