diff options
Diffstat (limited to 'lisp/progmodes/compile.el')
| -rw-r--r-- | lisp/progmodes/compile.el | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/lisp/progmodes/compile.el b/lisp/progmodes/compile.el index 223455e9872..034cdaf5fdd 100644 --- a/lisp/progmodes/compile.el +++ b/lisp/progmodes/compile.el | |||
| @@ -785,11 +785,14 @@ the function in `compilation-buffer-name-function', so you can set that | |||
| 785 | to a function that generates a unique name." | 785 | to a function that generates a unique name." |
| 786 | (interactive | 786 | (interactive |
| 787 | (list | 787 | (list |
| 788 | (if (or compilation-read-command current-prefix-arg) | 788 | (let ((command (eval compile-command))) |
| 789 | (read-from-minibuffer "Compile command: " | 789 | (if (or compilation-read-command current-prefix-arg) |
| 790 | (eval compile-command) nil nil | 790 | (read-from-minibuffer "Compile command: " |
| 791 | '(compile-history . 1)) | 791 | command nil nil |
| 792 | (eval compile-command)) | 792 | (if (equal (car compile-history) command) |
| 793 | '(compile-history . 1) | ||
| 794 | 'compile-history)) | ||
| 795 | command)) | ||
| 793 | (consp current-prefix-arg))) | 796 | (consp current-prefix-arg))) |
| 794 | (unless (equal command (eval compile-command)) | 797 | (unless (equal command (eval compile-command)) |
| 795 | (setq compile-command command)) | 798 | (setq compile-command command)) |