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: Sat, 31 Jan 2009 14:34:46 +0200 Message-ID: <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 1233405904 6796 80.91.229.12 (31 Jan 2009 12:45:04 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 31 Jan 2009 12:45:04 +0000 (UTC) To: submit@emacsbugs.donarmstrong.com Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Jan 31 13:46:18 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 1LTFEl-0006WP-L1 for geb-bug-gnu-emacs@m.gmane.org; Sat, 31 Jan 2009 13:46:16 +0100 Original-Received: from localhost ([127.0.0.1]:44686 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LTFDR-0001Wz-9N for geb-bug-gnu-emacs@m.gmane.org; Sat, 31 Jan 2009 07:44:54 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LTFCG-00013Z-UF for bug-gnu-emacs@gnu.org; Sat, 31 Jan 2009 07:43:41 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LTFCA-00012n-HU for bug-gnu-emacs@gnu.org; Sat, 31 Jan 2009 07:43:35 -0500 Original-Received: from [199.232.76.173] (port=56319 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LTFC9-00012a-97 for bug-gnu-emacs@gnu.org; Sat, 31 Jan 2009 07:43:33 -0500 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:53566) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1LTFC8-00087q-PP for bug-gnu-emacs@gnu.org; Sat, 31 Jan 2009 07:43: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 n0VChUKK028781; Sat, 31 Jan 2009 04:43:30 -0800 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id n0VCe4Tl027746; Sat, 31 Jan 2009 04:40:04 -0800 X-Loop: owner@emacsbugs.donarmstrong.com Resent-From: Jari Aalto Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Sat, 31 Jan 2009 12:40:04 +0000 Resent-Message-ID: Resent-Sender: owner@emacsbugs.donarmstrong.com X-Emacs-PR-Message: report 2134 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: patch Original-Received: via spool by submit@emacsbugs.donarmstrong.com id=B.123340530026446 (code B ref -1); Sat, 31 Jan 2009 12:40:04 +0000 Original-Received: (at submit) by emacsbugs.donarmstrong.com; 31 Jan 2009 12:35:00 +0000 X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. Original-Received: from emh03.mail.saunalahti.fi (emh03.mail.saunalahti.fi [62.142.5.109]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n0VCYpKl026440 for ; Sat, 31 Jan 2009 04:34:52 -0800 Original-Received: from saunalahti-vams (vs3-12.mail.saunalahti.fi [62.142.5.96]) by emh03-2.mail.saunalahti.fi (Postfix) with SMTP id 4D23AEBBF0 for ; Sat, 31 Jan 2009 14:34:48 +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 A0522E3E1C9; Sat, 31 Jan 2009 14:34:48 +0200 Original-Received: from picasso.cante.net (a91-155-187-216.elisa-laajakaista.fi [91.155.187.216]) by emh03.mail.saunalahti.fi (Postfix) with ESMTP id 3F188158A6E for ; Sat, 31 Jan 2009 14:34:47 +0200 (EET) Original-Received: from [192.168.1.7] (helo=jondo.cante.net) by picasso.cante.net with esmtp (Exim 4.69) (envelope-from ) id 1LTF3d-0004LU-Fe for submit@emacsbugs.donarmstrong.com; Sat, 31 Jan 2009 14:34:45 +0200 Original-Received: from jaalto by jondo.cante.net with local (Exim 4.69) (envelope-from ) id 1LTF3e-0003Jw-1s for submit@emacsbugs.donarmstrong.com; Sat, 31 Jan 2009 14:34:46 +0200 X-SA-Exim-Connect-IP: 192.168.1.7 X-SA-Exim-Mail-From: jari.aalto@cante.net X-SA-Exim-Scanned: No (on picasso.cante.net); SAEximRunCond expanded to false X-Antivirus: VAMS X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) Resent-Date: Sat, 31 Jan 2009 07:43:34 -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:24768 Archived-At: Tags: patch Here is patch to not to turn on font-lock unconditionally. Patch is against Emacs version control tree check out 2009-01-31. 2009-01-31 Jari Aalto * progmodes/compile.el (compilation-start): Run `font-lock-fontify-buffer' only if `global-font-lock-mode' is non-nil. >From 473ca5257db6da8da4d31e4b9a2682f0972cc8c1 Mon Sep 17 00:00:00 2001 From: Jari Aalto Date: Sat, 31 Jan 2009 14:27:23 +0200 Subject: [PATCH] lisp/progmodes/compile.el: (compilation-start): check global-font-lock-mode Signed-off-by: Jari Aalto --- lisp/progmodes/compile.el | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/lisp/progmodes/compile.el b/lisp/progmodes/compile.el index 2554730..1259403 100644 --- a/lisp/progmodes/compile.el +++ b/lisp/progmodes/compile.el @@ -1326,7 +1326,8 @@ Returns the compilation buffer created." ;; Without async subprocesses, the buffer is not yet ;; fontified, so fontify it now. (let ((font-lock-verbose nil)) ; shut up font-lock messages - (font-lock-fontify-buffer)) + (if global-font-lock-mode + (font-lock-fontify-buffer))) (set-buffer-modified-p nil) (message "Executing `%s'...done" command))) ;; Now finally cd to where the shell started make/grep/... -- 1.5.6.5