diff options
| author | Daniel Pfeiffer | 2004-06-08 21:36:37 +0000 |
|---|---|---|
| committer | Daniel Pfeiffer | 2004-06-08 21:36:37 +0000 |
| commit | b3ef54c5fa29f0ee97e2709c405e163c49d93616 (patch) | |
| tree | bb8d607df9e34a6b82e0d2e325fda3f2b4267b71 | |
| parent | ed27bf96e88b56b6b4f0b3d694abd6de2cbe42aa (diff) | |
| download | emacs-b3ef54c5fa29f0ee97e2709c405e163c49d93616.tar.gz emacs-b3ef54c5fa29f0ee97e2709c405e163c49d93616.zip | |
(compilation-set-window-height): Rearrange the save-* functions because a buffer can have several current point in different windows.
(compilation-error-regexp-alist-alist): Recognize {standard input} GNU messages (for gcc --pipe) and more kinds of Oracle messages.
| -rw-r--r-- | lisp/progmodes/compile.el | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/lisp/progmodes/compile.el b/lisp/progmodes/compile.el index 0a1ed9e7077..3a880a4c9ea 100644 --- a/lisp/progmodes/compile.el +++ b/lisp/progmodes/compile.el | |||
| @@ -210,7 +210,7 @@ of[ \t]+\"?\\([a-zA-Z]?:?[^\":\n]+\\)\"?:" 3 2 nil (1)) | |||
| 210 | 210 | ||
| 211 | (gnu | 211 | (gnu |
| 212 | "^\\(?:[[:alpha:]][-[:alnum:].]+: ?\\)?\ | 212 | "^\\(?:[[:alpha:]][-[:alnum:].]+: ?\\)?\ |
| 213 | \\([/.]*[a-zA-Z]:?[^ \t\n:]*\\): ?\ | 213 | \\([/.]*[a-zA-Z]:?[^ \t\n:]*\\|{standard input}\\): ?\ |
| 214 | \\([0-9]+\\)\\([.:]?\\)\\([0-9]+\\)?\ | 214 | \\([0-9]+\\)\\([.:]?\\)\\([0-9]+\\)?\ |
| 215 | \\(?:-\\(?:\\([0-9]+\\)\\3\\)?\\.?\\([0-9]+\\)?\\)?:\ | 215 | \\(?:-\\(?:\\([0-9]+\\)\\3\\)?\\.?\\([0-9]+\\)?\\)?:\ |
| 216 | \\(?: *\\(\\(?:Future\\|Runtime\\)?[Ww]arning\\|W:\\)\\|\ | 216 | \\(?: *\\(\\(?:Future\\|Runtime\\)?[Ww]arning\\|W:\\)\\|\ |
| @@ -242,7 +242,9 @@ of[ \t]+\"?\\([a-zA-Z]?:?[^\":\n]+\\)\"?:" 3 2 nil (1)) | |||
| 242 | : \\(?:error\\|warnin\\(g\\)\\) C[0-9]+:" 1 2 nil (3)) | 242 | : \\(?:error\\|warnin\\(g\\)\\) C[0-9]+:" 1 2 nil (3)) |
| 243 | 243 | ||
| 244 | (oracle | 244 | (oracle |
| 245 | "^Semantic error at line \\([0-9]+\\), column \\([0-9]+\\), file \\(.*\\):$" | 245 | "^\\(?:Semantic error\\|Error\\|PCC-[0-9]+:\\).* line \\([0-9]+\\)\ |
| 246 | \\(?:\\(?:,\\| at\\)? column \\([0-9]+\\)\\)?\ | ||
| 247 | \\(?:,\\| in\\| of\\)? file \\(.*?\\):?$" | ||
| 246 | 3 1 2) | 248 | 3 1 2) |
| 247 | 249 | ||
| 248 | (perl | 250 | (perl |
| @@ -988,13 +990,11 @@ exited abnormally with code %d\n" | |||
| 988 | ;; If window is alone in its frame, aside from a minibuffer, | 990 | ;; If window is alone in its frame, aside from a minibuffer, |
| 989 | ;; don't change its height. | 991 | ;; don't change its height. |
| 990 | (not (eq window (frame-root-window (window-frame window)))) | 992 | (not (eq window (frame-root-window (window-frame window)))) |
| 991 | ;; This save-current-buffer prevents us from changing the current | 993 | ;; Stef said that doing the saves in this order is safer: |
| 992 | ;; buffer, which might not be the same as the selected window's buffer. | 994 | (save-excursion |
| 993 | (save-current-buffer | ||
| 994 | (save-selected-window | 995 | (save-selected-window |
| 995 | (save-excursion | 996 | (select-window window) |
| 996 | (select-window window) | 997 | (enlarge-window (- height (window-height)))))))) |
| 997 | (enlarge-window (- height (window-height))))))))) | ||
| 998 | 998 | ||
| 999 | (defvar compilation-menu-map | 999 | (defvar compilation-menu-map |
| 1000 | (let ((map (make-sparse-keymap "Errors"))) | 1000 | (let ((map (make-sparse-keymap "Errors"))) |