From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.bugs Subject: bug#7771: 23.1; can't turn off font-lock-mode globally Date: Sun, 02 Jan 2011 22:55:52 -0500 Message-ID: References: <4D20CF4D.9010403@noir.com> <4D21180B.3050505@noir.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1294028638 16987 80.91.229.12 (3 Jan 2011 04:23:58 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 3 Jan 2011 04:23:58 +0000 (UTC) Cc: 7771@debbugs.gnu.org To: "K. Richard Pixley" Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Jan 03 05:23:53 2011 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PZbxX-0007Ay-Jk for geb-bug-gnu-emacs@m.gmane.org; Mon, 03 Jan 2011 05:23:51 +0100 Original-Received: from localhost ([127.0.0.1]:54132 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PZbxW-00013y-JW for geb-bug-gnu-emacs@m.gmane.org; Sun, 02 Jan 2011 23:23:50 -0500 Original-Received: from [140.186.70.92] (port=49741 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PZbxS-00013j-8i for bug-gnu-emacs@gnu.org; Sun, 02 Jan 2011 23:23:47 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PZbxR-0004Xk-6J for bug-gnu-emacs@gnu.org; Sun, 02 Jan 2011 23:23:46 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:46436) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PZbxQ-0004Xg-Vo for bug-gnu-emacs@gnu.org; Sun, 02 Jan 2011 23:23:45 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1PZbPq-0007Cx-6F; Sun, 02 Jan 2011 22:49:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 03 Jan 2011 03:49:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 7771 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 7771-submit@debbugs.gnu.org id=B7771.129402653127684 (code B ref 7771); Mon, 03 Jan 2011 03:49:02 +0000 Original-Received: (at 7771) by debbugs.gnu.org; 3 Jan 2011 03:48:51 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PZbPf-0007CS-1P for submit@debbugs.gnu.org; Sun, 02 Jan 2011 22:48:51 -0500 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.183] helo=ironport2-out.pppoe.ca) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PZbPc-0007CC-54; Sun, 02 Jan 2011 22:48:48 -0500 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AvsEACfXIE1Ld/TY/2dsb2JhbACkM3S6NIJ1glUEhGWOGw X-IronPort-AV: E=Sophos;i="4.60,265,1291611600"; d="scan'208";a="86924778" Original-Received: from 75-119-244-216.dsl.teksavvy.com (HELO ceviche.home) ([75.119.244.216]) by ironport2-out.pppoe.ca with ESMTP/TLS/ADH-AES256-SHA; 02 Jan 2011 22:55:53 -0500 Original-Received: by ceviche.home (Postfix, from userid 20848) id 8CC0C6610E; Sun, 2 Jan 2011 22:55:52 -0500 (EST) In-Reply-To: <4D21180B.3050505@noir.com> (K. Richard Pixley's message of "Sun, 02 Jan 2011 16:27:55 -0800") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Sun, 02 Jan 2011 22:49:02 -0500 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) 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: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:43022 Archived-At: close 3628 thanks >>> (global-font-lock-mode 0) doesn't seem to work. >> It should work. So please tell us the cases where it doesn't work, so >> we can try and figure out where's the problem. > M-x grep OK, that one is a known problem: compile.el (used for M-x compile and M-x grep) uses font-lock internally, so it forces font-lock to be enabled. > When I call (global-font-lock-mode 0) in my .emacs.el, python mode isn't > font locked. But if I ever M-x python-shell, then files visited afterward > will be font locked, even though global-ton-lock-mode's value is nil. > At this point I have to restart emacs in order to see anything. I'm not sure I understand why you see different results before and after python-shell, but indeed I see that python.el incorrectly forces font-lock-mode to be enabled in emacs-23. I've just installed a patch which should fix it. > Visit a binary file, the nonprintable ascii is colored. This is not controlled by font-lock. IIUC this just unconditionally receives the `escape-glyph' face, so you can only "turn it off" by configuring this face. > M-x compile As mentioned above, this is the same issue as M-x grep. I hope we can fix it for Emacs-24 (by making compile.el use syntax-propertize-function rather than font-lock), but for Emacs-23 the only solution I can offer is to configure the relevant faces so they look the same as default. Stefan