[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] Changes to emacs/lisp/progmodes/compile.el
From: |
Richard M. Stallman |
Subject: |
[Emacs-diffs] Changes to emacs/lisp/progmodes/compile.el |
Date: |
Tue, 13 Nov 2001 23:23:45 -0500 |
Index: emacs/lisp/progmodes/compile.el
diff -u emacs/lisp/progmodes/compile.el:1.243
emacs/lisp/progmodes/compile.el:1.244
--- emacs/lisp/progmodes/compile.el:1.243 Sat Nov 10 18:19:43 2001
+++ emacs/lisp/progmodes/compile.el Tue Nov 13 23:23:45 2001
@@ -580,10 +580,13 @@
;; run compile with the default command line
(defun recompile ()
- "Re-compile the program including the current buffer."
+ "Re-compile the program including the current buffer.
+If this is run in a compilation-mode buffer, re-use the arguments from the
+original use. Otherwise, it recompiles using `compile-command'."
(interactive)
(save-some-buffers (not compilation-ask-about-save) nil)
- (compile-internal (eval compile-command) "No more errors"))
+ (apply 'compile-internal (or compilation-arguments
+ `(,(eval compile-command) "No more errors"))))
(defun grep-process-setup ()
"Set up `compilation-exit-message-function' for `grep'."