From: Jari Aalto <jari.aalto@cante.net>
To: submit@emacsbugs.donarmstrong.com
Subject: bug#2134: [PATCH] progmodes/compile.el: check global-font-lock-mode
Date: Sat, 31 Jan 2009 14:34:46 +0200 [thread overview]
Message-ID: <87tz7ffyc9.fsf@jondo.cante.net> (raw)
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 <jari.aalto@cante.net>
* 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 <jari.aalto@cante.net>
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 <jari.aalto@cante.net>
---
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
next reply other threads:[~2009-01-31 12:34 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-01-31 12:34 Jari Aalto [this message]
2009-01-31 19:54 ` bug#2134: [PATCH] progmodes/compile.el: check global-font-lock-mode Stefan Monnier
2009-02-01 10:46 ` Jari Aalto
2009-02-01 22:54 ` Stefan Monnier
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87tz7ffyc9.fsf@jondo.cante.net \
--to=jari.aalto@cante.net \
--cc=2134@emacsbugs.donarmstrong.com \
--cc=submit@emacsbugs.donarmstrong.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).