diff options
| author | Eli Zaretskii | 2014-11-01 16:16:53 +0200 |
|---|---|---|
| committer | Eli Zaretskii | 2014-11-01 16:16:53 +0200 |
| commit | 85f20e489e7beab9768a9703b1add7e2bba792f4 (patch) | |
| tree | 212618abcba59bd96f55e90c64eaaad28f0fba69 | |
| parent | b14b7f431fe9cfcdcb23eecf105992d1c276dc69 (diff) | |
| download | emacs-85f20e489e7beab9768a9703b1add7e2bba792f4.tar.gz emacs-85f20e489e7beab9768a9703b1add7e2bba792f4.zip | |
Fix bug #18856 with failure to fontify compilation buffers.
lisp/progmodes/compile.el (compilation-mode): Turn off deferred
fontifications locally.
| -rw-r--r-- | lisp/ChangeLog | 5 | ||||
| -rw-r--r-- | lisp/progmodes/compile.el | 6 |
2 files changed, 11 insertions, 0 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 731a71a9f49..5a02735a3be 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2014-11-01 Eli Zaretskii <eliz@gnu.org> | ||
| 2 | |||
| 3 | * progmodes/compile.el (compilation-mode): Turn off deferred | ||
| 4 | fontifications locally. (Bug#18856) | ||
| 5 | |||
| 1 | 2014-11-01 Wolfgang Jenkner <wjenkner@inode.at> | 6 | 2014-11-01 Wolfgang Jenkner <wjenkner@inode.at> |
| 2 | 7 | ||
| 3 | * net/tramp-sh.el (tramp-send-command): Fix the case where the | 8 | * 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). | |||
| 1959 | compilation-page-delimiter) | 1959 | compilation-page-delimiter) |
| 1960 | ;; (set (make-local-variable 'compilation-buffer-modtime) nil) | 1960 | ;; (set (make-local-variable 'compilation-buffer-modtime) nil) |
| 1961 | (compilation-setup) | 1961 | (compilation-setup) |
| 1962 | ;; Turn off deferred fontifications in the compilation buffer, if | ||
| 1963 | ;; the user turned them on globally. This is because idle timers | ||
| 1964 | ;; aren't re-run after receiving input from a subprocess, so the | ||
| 1965 | ;; buffer is left unfontified after the compilation exits, until | ||
| 1966 | ;; some other input event happens. | ||
| 1967 | (set (make-local-variable 'jit-lock-defer-time) nil) | ||
| 1962 | (setq buffer-read-only t) | 1968 | (setq buffer-read-only t) |
| 1963 | (run-mode-hooks 'compilation-mode-hook)) | 1969 | (run-mode-hooks 'compilation-mode-hook)) |
| 1964 | 1970 | ||