Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
bb1f4b8f
Commit
bb1f4b8f
authored
May 08, 2014
by
Glenn Morris
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* compile.el (recompile): Handle C-u M-x recompile from non-compilation buffer
Fixes: debbugs:17444
parent
c055a50b
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
6 deletions
+12
-6
lisp/ChangeLog
lisp/ChangeLog
+5
-0
lisp/progmodes/compile.el
lisp/progmodes/compile.el
+7
-6
No files found.
lisp/ChangeLog
View file @
bb1f4b8f
2014-05-09 Glenn Morris <rgm@gnu.org>
* progmodes/compile.el (recompile):
Handle C-u M-x recompile from a non-compilation buffer. (Bug#17444)
2014-05-08 Juri Linkov <juri@jurta.org>
* dired.el (dired-check-switches, dired-switches-recursive-p):
...
...
lisp/progmodes/compile.el
View file @
bb1f4b8f
...
...
@@ -1430,7 +1430,7 @@ If optional second arg COMINT is t the buffer will be in Comint mode with
`compilation-shell-minor-mode'.
Interactively, prompts for the command if the variable
`compilation-read-command' is non-nil; otherwise uses`compile-command'.
`compilation-read-command' is non-nil; otherwise uses
`compile-command'.
With prefix arg, always prompts.
Additionally, with universal prefix arg, compilation buffer will be in
comint mode, i.e. interactive.
...
...
@@ -1469,12 +1469,13 @@ If the optional argument `edit-command' is non-nil, the command can be edited."
(interactive "P")
(save-some-buffers (not compilation-ask-about-save)
compilation-save-buffers-predicate)
(let ((default-directory (or compilation-directory default-directory)))
(let ((default-directory (or compilation-directory default-directory))
(command (eval compile-command)))
(when edit-command
(setcar compilation-arguments
(compilation-read-command (car compilation-arguments)
)))
(apply '
compilation-
start (o
r compilation-arguments
`(,(eval compile-
command)))))
)
(set
q command (compilation-read-command (or (
car compilation-arguments
)
command
)))
(if
compilation-
arguments (setca
r compilation-arguments
command)))
(apply 'compilation-start (or compilation-arguments (list
command)))))
(defcustom compilation-scroll-output nil
"Non-nil to scroll the *compilation* buffer window as output appears.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment