comparison lisp/progmodes/compile.el @ 55990:c6610cef9b75

(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.
author Daniel Pfeiffer <occitan@esperanto.org>
date Tue, 08 Jun 2004 21:36:37 +0000
parents 5e730ddfd23a
children 0faa9af73cb1
comparison
equal deleted inserted replaced
55989:ec25f3ebecc4 55990:c6610cef9b75
208 "^\\(?:In file included\\| \\) from \ 208 "^\\(?:In file included\\| \\) from \
209 \\(.+\\):\\([0-9]+\\)\\(?:\\(:\\)\\|\\(,\\)\\)?" 1 2 nil (3 . 4)) 209 \\(.+\\):\\([0-9]+\\)\\(?:\\(:\\)\\|\\(,\\)\\)?" 1 2 nil (3 . 4))
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:\\)\\|\
217 *\\([Ii]nfo\\(?:\\>\\|rmationa?l?\\)\\|I:\\)\\)?" 217 *\\([Ii]nfo\\(?:\\>\\|rmationa?l?\\)\\|I:\\)\\)?"
218 1 (2 . 5) (4 . 6) (7 . 8)) 218 1 (2 . 5) (4 . 6) (7 . 8))
240 (msft 240 (msft
241 "^\\(\\(?:[a-zA-Z]:\\)?[^:(\t\n]+\\)(\\([0-9]+\\)) \ 241 "^\\(\\(?:[a-zA-Z]:\\)?[^:(\t\n]+\\)(\\([0-9]+\\)) \
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
249 " at \\([^ \n]+\\) line \\([0-9]+\\)\\(?:[,.]\\|$\\)" 1 2) 251 " at \\([^ \n]+\\) line \\([0-9]+\\)\\(?:[,.]\\|$\\)" 1 2)
250 252
986 (and height 988 (and height
987 (= (window-width window) (frame-width (window-frame window))) 989 (= (window-width window) (frame-width (window-frame window)))
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")))
1001 (define-key map [stop-subjob] 1001 (define-key map [stop-subjob]
1002 '("Stop Compilation" . kill-compilation)) 1002 '("Stop Compilation" . kill-compilation))