From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Jari Aalto Newsgroups: gmane.emacs.bugs Subject: bug#2134: [PATCH] progmodes/compile.el: check global-font-lock-mode Date: Sun, 01 Feb 2009 12:46:22 +0200 Message-ID: <87zlh68mf5.fsf@jondo.cante.net> References: <87tz7ffyc9.fsf@jondo.cante.net> Reply-To: Jari Aalto , 2134@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1233486286 13367 80.91.229.12 (1 Feb 2009 11:04:46 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 1 Feb 2009 11:04:46 +0000 (UTC) Cc: 2134@emacsbugs.donarmstrong.com To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Feb 01 12:05:59 2009 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.50) id 1LTa9E-0006uC-0H for geb-bug-gnu-emacs@m.gmane.org; Sun, 01 Feb 2009 12:05:56 +0100 Original-Received: from localhost ([127.0.0.1]:48308 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LTa7v-0000nU-LG for geb-bug-gnu-emacs@m.gmane.org; Sun, 01 Feb 2009 06:04:35 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LTa6z-0000KQ-9O for bug-gnu-emacs@gnu.org; Sun, 01 Feb 2009 06:03:37 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LTa6w-0000HS-3I for bug-gnu-emacs@gnu.org; Sun, 01 Feb 2009 06:03:36 -0500 Original-Received: from [199.232.76.173] (port=54120 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LTa6v-0000HI-Qs for bug-gnu-emacs@gnu.org; Sun, 01 Feb 2009 06:03:33 -0500 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:39128) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1LTa6v-0002ZV-7A for bug-gnu-emacs@gnu.org; Sun, 01 Feb 2009 06:03:33 -0500 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n11B3V7c001663; Sun, 1 Feb 2009 03:03:31 -0800 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id n11At3fG031836; Sun, 1 Feb 2009 02:55:03 -0800 X-Loop: owner@emacsbugs.donarmstrong.com Resent-From: Jari Aalto Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Sun, 01 Feb 2009 10:55:03 +0000 Resent-Message-ID: Resent-Sender: owner@emacsbugs.donarmstrong.com X-Emacs-PR-Message: followup 2134 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: patch Original-Received: via spool by 2134-submit@emacsbugs.donarmstrong.com id=B2134.123348519330565 (code B ref 2134); Sun, 01 Feb 2009 10:55:03 +0000 Original-Received: (at 2134) by emacsbugs.donarmstrong.com; 1 Feb 2009 10:46:33 +0000 X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. Original-Received: from emh02.mail.saunalahti.fi (emh02.mail.saunalahti.fi [62.142.5.108]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n11AkSJl030559 for <2134@emacsbugs.donarmstrong.com>; Sun, 1 Feb 2009 02:46:30 -0800 Original-Received: from saunalahti-vams (vs3-12.mail.saunalahti.fi [62.142.5.96]) by emh02-2.mail.saunalahti.fi (Postfix) with SMTP id 4D692EF208; Sun, 1 Feb 2009 12:46:27 +0200 (EET) Original-Received: from emh03.mail.saunalahti.fi ([62.142.5.109]) by vs3-12.mail.saunalahti.fi ([62.142.5.96]) with SMTP (gateway) id A01A8B1BC76; Sun, 01 Feb 2009 12:46:27 +0200 Original-Received: from jondo.cante.net (a91-155-187-216.elisa-laajakaista.fi [91.155.187.216]) by emh03.mail.saunalahti.fi (Postfix) with ESMTP id 24172158A83; Sun, 1 Feb 2009 12:46:23 +0200 (EET) In-Reply-To: (Stefan Monnier's message of "Sat, 31 Jan 2009 14:54:15 -0500") User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/22.2 (gnu/linux) X-Antivirus: VAMS X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) Resent-Date: Sun, 01 Feb 2009 06:03:36 -0500 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list 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:24793 Archived-At: Stefan Monnier writes: >> Here is patch to not to turn on font-lock unconditionally. Patch is >> against Emacs version control tree check out 2009-01-31. > > If you read the rest of the compile.el code, you'll see that it uses > font-lock to do its job, which is why it's turned on unconditionally. > The buffer handling could be improved to work without font lock. In some cases the colors distract reading; thus font-lock is turned offm, but RET no longer intreprets the line. SUGGESTION There could be be alternative handler to read the current line and respond to RET (etc.) when font-lock is turned off. I'm supposing here that standard grep syntax would be easy to handle: default-directory: DIR FILE:LINE:MATCH Jari