comparison lisp/progmodes/compile.el @ 94168:c9abaca676e7

(compile-internal): Add WHEN to obsolescence declaration.
author Juanma Barranquero <lekktu@gmail.com>
date Fri, 18 Apr 2008 10:33:17 +0000
parents 6598459f3056
children 07fb6a1d5233
comparison
equal deleted inserted replaced
94167:3f795454be96 94168:c9abaca676e7
1101 (append file-regexp-alist (or error-regexp-alist 1101 (append file-regexp-alist (or error-regexp-alist
1102 compilation-error-regexp-alist))) 1102 compilation-error-regexp-alist)))
1103 (compilation-error (replace-regexp-in-string "^No more \\(.+\\)s\\.?" 1103 (compilation-error (replace-regexp-in-string "^No more \\(.+\\)s\\.?"
1104 "\\1" error-message))) 1104 "\\1" error-message)))
1105 (compilation-start command nil name-function highlight-regexp))) 1105 (compilation-start command nil name-function highlight-regexp)))
1106 (make-obsolete 'compile-internal 'compilation-start) 1106 (make-obsolete 'compile-internal 'compilation-start "22.1")
1107 1107
1108 ;;;###autoload 1108 ;;;###autoload
1109 (defun compilation-start (command &optional mode name-function highlight-regexp) 1109 (defun compilation-start (command &optional mode name-function highlight-regexp)
1110 "Run compilation command COMMAND (low level interface). 1110 "Run compilation command COMMAND (low level interface).
1111 If COMMAND starts with a cd command, that becomes the `default-directory'. 1111 If COMMAND starts with a cd command, that becomes the `default-directory'.
1246 shell-file-name) 1246 shell-file-name)
1247 nil `("-c" ,command)))) 1247 nil `("-c" ,command))))
1248 (start-file-process-shell-command (downcase mode-name) 1248 (start-file-process-shell-command (downcase mode-name)
1249 outbuf command)))) 1249 outbuf command))))
1250 ;; Make the buffer's mode line show process state. 1250 ;; Make the buffer's mode line show process state.
1251 (setq mode-line-process 1251 (setq mode-line-process
1252 (list (propertize ":%s" 'face 'compilation-warning))) 1252 (list (propertize ":%s" 'face 'compilation-warning)))
1253 (set-process-sentinel proc 'compilation-sentinel) 1253 (set-process-sentinel proc 'compilation-sentinel)
1254 (set-process-filter proc 'compilation-filter) 1254 (set-process-filter proc 'compilation-filter)
1255 ;; Use (point-max) here so that output comes in 1255 ;; Use (point-max) here so that output comes in
1256 ;; after the initial text, 1256 ;; after the initial text,
1417 1417
1418 (defvar compilation-mode-tool-bar-map 1418 (defvar compilation-mode-tool-bar-map
1419 (if (display-graphic-p) 1419 (if (display-graphic-p)
1420 (let ((map (butlast (copy-keymap tool-bar-map))) 1420 (let ((map (butlast (copy-keymap tool-bar-map)))
1421 (help (last tool-bar-map))) ;; Keep Help last in tool bar 1421 (help (last tool-bar-map))) ;; Keep Help last in tool bar
1422 (tool-bar-local-item 1422 (tool-bar-local-item
1423 "left-arrow" 'previous-error-no-select 'previous-error-no-select map 1423 "left-arrow" 'previous-error-no-select 'previous-error-no-select map
1424 :rtl "right-arrow" 1424 :rtl "right-arrow"
1425 :help "Goto previous error") 1425 :help "Goto previous error")
1426 (tool-bar-local-item 1426 (tool-bar-local-item
1427 "right-arrow" 'next-error-no-select 'next-error-no-select map 1427 "right-arrow" 'next-error-no-select 'next-error-no-select map
1428 :rtl "left-arrow" 1428 :rtl "left-arrow"
1429 :help "Goto next error") 1429 :help "Goto next error")
1430 (tool-bar-local-item 1430 (tool-bar-local-item
1431 "cancel" 'kill-compilation 'kill-compilation map 1431 "cancel" 'kill-compilation 'kill-compilation map
1432 :enable '(let ((buffer (compilation-find-buffer))) 1432 :enable '(let ((buffer (compilation-find-buffer)))
1433 (get-buffer-process buffer)) 1433 (get-buffer-process buffer))
1434 :help "Stop compilation") 1434 :help "Stop compilation")
1435 (tool-bar-local-item 1435 (tool-bar-local-item
1436 "refresh" 'recompile 'recompile map 1436 "refresh" 'recompile 'recompile map
1437 :help "Restart compilation") 1437 :help "Restart compilation")
1438 (append map help)))) 1438 (append map help))))
1439 1439
1440 (put 'compilation-mode 'mode-class 'special) 1440 (put 'compilation-mode 'mode-class 'special)