diff options
| author | Juri Linkov | 2008-02-24 23:21:56 +0000 |
|---|---|---|
| committer | Juri Linkov | 2008-02-24 23:21:56 +0000 |
| commit | a46b95a8345d5c61c40ff60acd10c78d0e0e475e (patch) | |
| tree | 5649d449ebabe28ae985eb026682b91c91d5d158 | |
| parent | 229451669d34900b0d4a073c1df1edd6e24d2e21 (diff) | |
| download | emacs-a46b95a8345d5c61c40ff60acd10c78d0e0e475e.tar.gz emacs-a46b95a8345d5c61c40ff60acd10c78d0e0e475e.zip | |
(compilation-handle-exit):
Use compilation-error face instead of font-lock-warning-face.
Display the same message in the minibuffer as is inserted
at the end of the compilation buffer.
| -rw-r--r-- | lisp/ChangeLog | 7 | ||||
| -rw-r--r-- | lisp/progmodes/compile.el | 14 |
2 files changed, 14 insertions, 7 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 4dd56863948..266d07a9ee5 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,10 @@ | |||
| 1 | 2008-02-24 Juri Linkov <juri@jurta.org> | ||
| 2 | |||
| 3 | * progmodes/compile.el (compilation-handle-exit): | ||
| 4 | Use compilation-error face instead of font-lock-warning-face. | ||
| 5 | Display the same message in the minibuffer as is inserted | ||
| 6 | at the end of the compilation buffer. | ||
| 7 | |||
| 1 | 2008-02-24 Glenn Morris <rgm@gnu.org> | 8 | 2008-02-24 Glenn Morris <rgm@gnu.org> |
| 2 | 9 | ||
| 3 | * vc-cvs.el (vc-cvs-register): Fix registering of directories in | 10 | * vc-cvs.el (vc-cvs-register): Fix registering of directories in |
diff --git a/lisp/progmodes/compile.el b/lisp/progmodes/compile.el index 456f92f9be2..537d3cd0e0f 100644 --- a/lisp/progmodes/compile.el +++ b/lisp/progmodes/compile.el | |||
| @@ -1549,13 +1549,13 @@ Turning the mode on runs the normal hook `compilation-minor-mode-hook'." | |||
| 1549 | (append '(compilation-handle-exit t) nil)) | 1549 | (append '(compilation-handle-exit t) nil)) |
| 1550 | (setq mode-line-process | 1550 | (setq mode-line-process |
| 1551 | (let ((out-string (format ":%s [%s]" process-status (cdr status))) | 1551 | (let ((out-string (format ":%s [%s]" process-status (cdr status))) |
| 1552 | (tooltip (buffer-substring-no-properties (1+ omax) (point)))) | 1552 | (msg (format "%s %s" mode-name |
| 1553 | (propertize | 1553 | (replace-regexp-in-string "\n?$" "" (car status))))) |
| 1554 | out-string | 1554 | (message "%s" msg) |
| 1555 | 'help-echo tooltip | 1555 | (propertize out-string |
| 1556 | 'face | 1556 | 'help-echo msg 'face (if (> exit-status 0) |
| 1557 | (if (> exit-status 0) 'font-lock-warning-face 'compilation-info)))) | 1557 | 'compilation-error |
| 1558 | (message (format "exit status: %s %s" exit-status (> 0 exit-status))) | 1558 | 'compilation-info)))) |
| 1559 | ;; Force mode line redisplay soon. | 1559 | ;; Force mode line redisplay soon. |
| 1560 | (force-mode-line-update) | 1560 | (force-mode-line-update) |
| 1561 | (if (and opoint (< opoint omax)) | 1561 | (if (and opoint (< opoint omax)) |