[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [compilation-mode] Watch for sudo prompt
From: |
Lluís |
Subject: |
Re: [compilation-mode] Watch for sudo prompt |
Date: |
Sun, 04 Nov 2012 00:31:41 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.2 (gnu/linux) |
Eric Hanchrow writes:
> I haven't tried this, but:
> * shell-mode knows how to read passwords without echoing them; and
> * your compilations can happen in shell-mode (well, comint-mode,
> anyway) if you do C-u M-x compile RET
> ... So maybe that'd work.
Works like a charm, thanks!
For the record, I had `compile' called from my own dwim compilation function, so
this is what I had to use:
(call-interactively 'compile nil (vector (list 4)))
Lluis
> On Sat, Nov 3, 2012 at 3:43 PM, Lluís <address@hidden> wrote:
>> Is there a reliable way to make compilation-mode ask the user for a password
>> when it sees the typical sudo prompt?
>>
>> Otherwise it gets stuck waiting for the password and there is no way to
>> write it
>> except running the command in a shell (although I've found it sometimes
>> works if
>> I first run the command in `shell', but I'm not sure when nor who triggers
>> this
>> behaviour).
--
"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