aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJuri Linkov2005-08-14 06:51:49 +0000
committerJuri Linkov2005-08-14 06:51:49 +0000
commit314b410b7eacceab1b6cc42559d6035f4ea93d65 (patch)
tree71e82936aa97ea3c0b1f6a1e130d958eb834291e
parent7860977ad97f992b33093b236beac6e19269a412 (diff)
downloademacs-314b410b7eacceab1b6cc42559d6035f4ea93d65.tar.gz
emacs-314b410b7eacceab1b6cc42559d6035f4ea93d65.zip
(compilation-mode-font-lock-keywords):
Remove highlighting of "Compilation started". Highlight only the word "finished" in "Compilation finished". Add highlighting of "interrupt", "killed", "terminated" and the exit code. (compilation-start): Add newline after header. Use exactly the same time stamp format as the finishing message. (compilation-mode-map): Add ellipsis to "Search Files (grep)".
-rw-r--r--lisp/progmodes/compile.el15
1 files changed, 9 insertions, 6 deletions
diff --git a/lisp/progmodes/compile.el b/lisp/progmodes/compile.el
index 61af8e2a4ef..0c299e5678c 100644
--- a/lisp/progmodes/compile.el
+++ b/lisp/progmodes/compile.el
@@ -382,8 +382,11 @@ you may also want to change `compilation-page-delimiter'.")
382 ("^\\([[:alnum:]_/.+-]+\\)\\(\\[\\([0-9]+\\)\\]\\)?[ \t]*:" 382 ("^\\([[:alnum:]_/.+-]+\\)\\(\\[\\([0-9]+\\)\\]\\)?[ \t]*:"
383 (1 font-lock-function-name-face) (3 compilation-line-face nil t)) 383 (1 font-lock-function-name-face) (3 compilation-line-face nil t))
384 (" --?o\\(?:utfile\\|utput\\)?[= ]?\\(\\S +\\)" . 1) 384 (" --?o\\(?:utfile\\|utput\\)?[= ]?\\(\\S +\\)" . 1)
385 ("^Compilation \\(finish\\|start\\)ed" . compilation-info-face) 385 ("^Compilation \\(finished\\)"
386 ("^Compilation exited abnormally" . compilation-error-face)) 386 (1 compilation-info-face))
387 ("^Compilation \\(exited abnormally\\|interrupt\\|killed\\|terminated\\)\\(?:.*with code \\([0-9]+\\)\\)?"
388 (1 compilation-error-face)
389 (2 compilation-error-face nil t)))
387 "Additional things to highlight in Compilation mode. 390 "Additional things to highlight in Compilation mode.
388This gets tacked on the end of the generated expressions.") 391This gets tacked on the end of the generated expressions.")
389 392
@@ -971,9 +974,9 @@ Returns the compilation buffer created."
971 (insert "-*- mode: " name-of-mode 974 (insert "-*- mode: " name-of-mode
972 "; default-directory: " (prin1-to-string default-directory) 975 "; default-directory: " (prin1-to-string default-directory)
973 " -*-\n" 976 " -*-\n"
974 (format "%s started at %s\n" 977 (format "%s started at %s\n\n"
975 (capitalize name-of-mode) 978 mode-name
976 (format-time-string "%a %b %d %H:%M:%S")) 979 (substring (current-time-string) 0 19))
977 command "\n") 980 command "\n")
978 (setq thisdir default-directory)) 981 (setq thisdir default-directory))
979 (set-buffer-modified-p nil)) 982 (set-buffer-modified-p nil))
@@ -1160,7 +1163,7 @@ exited abnormally with code %d\n"
1160 (define-key map [menu-bar compilation compilation-separator2] 1163 (define-key map [menu-bar compilation compilation-separator2]
1161 '("----" . nil)) 1164 '("----" . nil))
1162 (define-key map [menu-bar compilation compilation-grep] 1165 (define-key map [menu-bar compilation compilation-grep]
1163 '("Search Files (grep)" . grep)) 1166 '("Search Files (grep)..." . grep))
1164 (define-key map [menu-bar compilation compilation-recompile] 1167 (define-key map [menu-bar compilation compilation-recompile]
1165 '("Recompile" . recompile)) 1168 '("Recompile" . recompile))
1166 (define-key map [menu-bar compilation compilation-compile] 1169 (define-key map [menu-bar compilation compilation-compile]