* `recompile' lacks comint option
@ 2012-11-04 1:03 Lluís
2012-11-06 1:25 ` Stefan Monnier
0 siblings, 1 reply; 2+ messages in thread
From: Lluís @ 2012-11-04 1:03 UTC (permalink / raw)
To: emacs-devel
After getting `compile' to properly work with the comint option from a function
of my own, I realized that `recompile' lacks such support.
My target is to make this always use the "comint" feature, so that
compiling/recompiling will be able to handle sudo prompts:
#v+
(defun my-dwim-compile (arg)
"DWIM compilation.
If compilation is running, use `kill-compilation'.
Otherwise, use `recompile'.
If ARG is not nil, force a call to `compile'."
(interactive "P")
(if arg
(call-interactively 'compile nil (vector (list 4)))
(condition-case nil
(call-interactively 'kill-compilation)
(error (call-interactively 'recompile))))
nil)
#v-
Thanks,
Lluis
--
"And it's much the same thing with knowledge, for whenever you learn
something new, the whole world becomes that much richer."
-- The Princess of Pure Reason, as told by Norton Juster in The Phantom
Tollbooth
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2012-11-06 1:25 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-11-04 1:03 `recompile' lacks comint option Lluís
2012-11-06 1:25 ` Stefan Monnier
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).