]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix bug #18856 with failure to fontify compilation buffers.
authorEli Zaretskii <eliz@gnu.org>
Sat, 1 Nov 2014 14:16:53 +0000 (16:16 +0200)
committerEli Zaretskii <eliz@gnu.org>
Sat, 1 Nov 2014 14:16:53 +0000 (16:16 +0200)
 lisp/progmodes/compile.el (compilation-mode): Turn off deferred
 fontifications locally.

lisp/ChangeLog
lisp/progmodes/compile.el

index 731a71a9f492ff69864e084637fffa2a9932696f..5a02735a3bec4cfcd46f69190871f38d84d4b21b 100644 (file)
@@ -1,3 +1,8 @@
+2014-11-01  Eli Zaretskii  <eliz@gnu.org>
+
+       * progmodes/compile.el (compilation-mode): Turn off deferred
+       fontifications locally.  (Bug#18856)
+
 2014-11-01  Wolfgang Jenkner  <wjenkner@inode.at>
 
        * net/tramp-sh.el (tramp-send-command): Fix the case where the
index d2f7d595cbce686d80481e1ed152d817dbf68ca8..2771cee977eec95926a4e1e369a4ea4ce71a7a48 100644 (file)
@@ -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))