From: Eli Zaretskii Date: Sat, 1 Nov 2014 14:16:53 +0000 (+0200) Subject: Fix bug #18856 with failure to fontify compilation buffers. X-Git-Tag: emacs-24.4.90~283 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=85f20e489e7beab9768a9703b1add7e2bba792f4;p=emacs.git Fix bug #18856 with failure to fontify compilation buffers. lisp/progmodes/compile.el (compilation-mode): Turn off deferred fontifications locally. --- diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 731a71a9f49..5a02735a3be 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,3 +1,8 @@ +2014-11-01 Eli Zaretskii + + * progmodes/compile.el (compilation-mode): Turn off deferred + fontifications locally. (Bug#18856) + 2014-11-01 Wolfgang Jenkner * net/tramp-sh.el (tramp-send-command): Fix the case where the diff --git a/lisp/progmodes/compile.el b/lisp/progmodes/compile.el index d2f7d595cbc..2771cee977e 100644 --- a/lisp/progmodes/compile.el +++ b/lisp/progmodes/compile.el @@ -1959,6 +1959,12 @@ Runs `compilation-mode-hook' with `run-mode-hooks' (which see). compilation-page-delimiter) ;; (set (make-local-variable 'compilation-buffer-modtime) nil) (compilation-setup) + ;; Turn off deferred fontifications in the compilation buffer, if + ;; the user turned them on globally. This is because idle timers + ;; aren't re-run after receiving input from a subprocess, so the + ;; buffer is left unfontified after the compilation exits, until + ;; some other input event happens. + (set (make-local-variable 'jit-lock-defer-time) nil) (setq buffer-read-only t) (run-mode-hooks 'compilation-mode-hook))