From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: dbastos@toledo.com Newsgroups: gmane.emacs.bugs Subject: bug#22313: 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> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1452015806 14367 80.91.229.3 (5 Jan 2016 17:43:26 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 5 Jan 2016 17:43:26 +0000 (UTC) To: 22313@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Jan 05 18:43:12 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 1aGVdX-0007i3-Qn for geb-bug-gnu-emacs@m.gmane.org; Tue, 05 Jan 2016 18:43:12 +0100 Original-Received: from localhost ([::1]:50814 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aGVdX-00009w-7f for geb-bug-gnu-emacs@m.gmane.org; Tue, 05 Jan 2016 12:43:11 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:52222) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aGVdT-00009c-12 for bug-gnu-emacs@gnu.org; Tue, 05 Jan 2016 12:43:08 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aGVdO-0004mb-V0 for bug-gnu-emacs@gnu.org; Tue, 05 Jan 2016 12:43:06 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:50842) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aGVdO-0004mV-Qq for bug-gnu-emacs@gnu.org; Tue, 05 Jan 2016 12:43:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84) (envelope-from ) id 1aGVdO-00048m-K0 for bug-gnu-emacs@gnu.org; Tue, 05 Jan 2016 12:43:02 -0500 X-Loop: help-debbugs@gnu.org 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: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.145201576515872 (code B ref -1); Tue, 05 Jan 2016 17:43:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 5 Jan 2016 17:42:45 +0000 Original-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 Original-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 Original-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 Original-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 Original-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 Original-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 Original-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 Original-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) Original-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) X-Google-Original-From: daniel.bastos@toledo.com 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-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 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:111248 Archived-At: 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)