diff options
| author | Glenn Morris | 2014-05-11 23:59:30 -0700 |
|---|---|---|
| committer | Glenn Morris | 2014-05-11 23:59:30 -0700 |
| commit | bbbabffe06d4c763534d5be92844c48a3f8746e2 (patch) | |
| tree | a6fffb13638948223f3142e5209cbce57282fbbd /lisp/progmodes | |
| parent | ffd6d9c4d321e93e301f9cafd1fe054389898978 (diff) | |
| parent | 96b894717caa773aa6d98ff57385f1c7537e8972 (diff) | |
| download | emacs-bbbabffe06d4c763534d5be92844c48a3f8746e2.tar.gz emacs-bbbabffe06d4c763534d5be92844c48a3f8746e2.zip | |
Merge from emacs-24; up to 2014-05-12T06:15:47Z!rgm@gnu.org
Diffstat (limited to 'lisp/progmodes')
| -rw-r--r-- | lisp/progmodes/compile.el | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/lisp/progmodes/compile.el b/lisp/progmodes/compile.el index 146b9f8cb71..dd1fb78c1a2 100644 --- a/lisp/progmodes/compile.el +++ b/lisp/progmodes/compile.el | |||
| @@ -1460,7 +1460,7 @@ If optional second arg COMINT is t the buffer will be in Comint mode with | |||
| 1460 | `compilation-shell-minor-mode'. | 1460 | `compilation-shell-minor-mode'. |
| 1461 | 1461 | ||
| 1462 | Interactively, prompts for the command if the variable | 1462 | Interactively, prompts for the command if the variable |
| 1463 | `compilation-read-command' is non-nil; otherwise uses`compile-command'. | 1463 | `compilation-read-command' is non-nil; otherwise uses `compile-command'. |
| 1464 | With prefix arg, always prompts. | 1464 | With prefix arg, always prompts. |
| 1465 | Additionally, with universal prefix arg, compilation buffer will be in | 1465 | Additionally, with universal prefix arg, compilation buffer will be in |
| 1466 | comint mode, i.e. interactive. | 1466 | comint mode, i.e. interactive. |
| @@ -1499,12 +1499,13 @@ If the optional argument `edit-command' is non-nil, the command can be edited." | |||
| 1499 | (interactive "P") | 1499 | (interactive "P") |
| 1500 | (save-some-buffers (not compilation-ask-about-save) | 1500 | (save-some-buffers (not compilation-ask-about-save) |
| 1501 | compilation-save-buffers-predicate) | 1501 | compilation-save-buffers-predicate) |
| 1502 | (let ((default-directory (or compilation-directory default-directory))) | 1502 | (let ((default-directory (or compilation-directory default-directory)) |
| 1503 | (command (eval compile-command))) | ||
| 1503 | (when edit-command | 1504 | (when edit-command |
| 1504 | (setcar compilation-arguments | 1505 | (setq command (compilation-read-command (or (car compilation-arguments) |
| 1505 | (compilation-read-command (car compilation-arguments)))) | 1506 | command))) |
| 1506 | (apply 'compilation-start (or compilation-arguments | 1507 | (if compilation-arguments (setcar compilation-arguments command))) |
| 1507 | `(,(eval compile-command)))))) | 1508 | (apply 'compilation-start (or compilation-arguments (list command))))) |
| 1508 | 1509 | ||
| 1509 | (defcustom compilation-scroll-output nil | 1510 | (defcustom compilation-scroll-output nil |
| 1510 | "Non-nil to scroll the *compilation* buffer window as output appears. | 1511 | "Non-nil to scroll the *compilation* buffer window as output appears. |