diff options
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. |