[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
`recompile' lacks comint option
From: |
Lluís |
Subject: |
`recompile' lacks comint option |
Date: |
Sun, 04 Nov 2012 02:03:50 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.2 (gnu/linux) |
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
- `recompile' lacks comint option,
Lluís <=