aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/progmodes
diff options
context:
space:
mode:
authorEli Zaretskii <[email protected]>2005-08-12 10:18:02 +0000
committerEli Zaretskii <[email protected]>2005-08-12 10:18:02 +0000
commita67e5425b3c4e7160f2fbb1852e7b013d1b54ddf (patch)
treea63f0ba8704526d62e4fdda3600473adfd431bd3 /lisp/progmodes
parent1f742f74f519bec9bee1983071c53d954e25753b (diff)
(compilation-start): Add the line "Compilation started" with compilation
start time. (compilation-mode-font-lock-keywords): Add `started' to keywords.
Diffstat (limited to 'lisp/progmodes')
-rw-r--r--lisp/progmodes/compile.el8
1 files changed, 6 insertions, 2 deletions
diff --git a/lisp/progmodes/compile.el b/lisp/progmodes/compile.el
index 6d5acfcbdf..61af8e2a4e 100644
--- a/lisp/progmodes/compile.el
+++ b/lisp/progmodes/compile.el
@@ -382,7 +382,7 @@ you may also want to change `compilation-page-delimiter'.")
("^\\([[:alnum:]_/.+-]+\\)\\(\\[\\([0-9]+\\)\\]\\)?[ \t]*:"
(1 font-lock-function-name-face) (3 compilation-line-face nil t))
(" --?o\\(?:utfile\\|utput\\)?[= ]?\\(\\S +\\)" . 1)
- ("^Compilation finished" . compilation-info-face)
+ ("^Compilation \\(finish\\|start\\)ed" . compilation-info-face)
("^Compilation exited abnormally" . compilation-error-face))
"Additional things to highlight in Compilation mode.
This gets tacked on the end of the generated expressions.")
@@ -970,7 +970,11 @@ Returns the compilation buffer created."
;; Output a mode setter, for saving and later reloading this buffer.
(insert "-*- mode: " name-of-mode
"; default-directory: " (prin1-to-string default-directory)
- " -*-\n" command "\n")
+ " -*-\n"
+ (format "%s started at %s\n"
+ (capitalize name-of-mode)
+ (format-time-string "%a %b %d %H:%M:%S"))
+ command "\n")
(setq thisdir default-directory))
(set-buffer-modified-p nil))
;; If we're already in the compilation buffer, go to the end