From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: =?utf-8?Q?Llu=C3=ADs?= Newsgroups: gmane.emacs.devel Subject: Re: [compilation-mode] Watch for sudo prompt Date: Sun, 04 Nov 2012 00:31:41 +0100 Message-ID: <87sj8qclgi.fsf@fimbulvetr.bsc.es> References: <87lieie298.fsf@fimbulvetr.bsc.es> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1351985510 8572 80.91.229.3 (3 Nov 2012 23:31:50 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 3 Nov 2012 23:31:50 +0000 (UTC) Cc: emacs-devel@gnu.org To: Eric Hanchrow Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Nov 04 00:31:59 2012 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1TUnC2-0005tl-8B for ged-emacs-devel@m.gmane.org; Sun, 04 Nov 2012 00:31:58 +0100 Original-Received: from localhost ([::1]:43488 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TUnBt-0000BX-Fh for ged-emacs-devel@m.gmane.org; Sat, 03 Nov 2012 19:31:49 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:55567) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TUnBq-0000BH-Bz for emacs-devel@gnu.org; Sat, 03 Nov 2012 19:31:47 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TUnBp-0002LV-BP for emacs-devel@gnu.org; Sat, 03 Nov 2012 19:31:46 -0400 Original-Received: from mailout-de.gmx.net ([213.165.64.23]:46982) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1TUnBp-0002LK-0I for emacs-devel@gnu.org; Sat, 03 Nov 2012 19:31:45 -0400 Original-Received: (qmail invoked by alias); 03 Nov 2012 23:31:43 -0000 Original-Received: from unknown (EHLO localhost) [84.88.51.85] by mail.gmx.net (mp031) with SMTP; 04 Nov 2012 00:31:43 +0100 X-Authenticated: #12333383 X-Provags-ID: V01U2FsdGVkX1+Z/OR8CqyZvFtCFrxBHiZlyLHNbGhByJlgtqMZOK JjXU9E6U/MTi+0 Mail-Followup-To: Eric Hanchrow , emacs-devel@gnu.org User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.2 (gnu/linux) X-Y-GMX-Trusted: 0 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 213.165.64.23 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:154652 Archived-At: 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 functio= n, 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=C3=ADs wrote: >> Is there a reliable way to make compilation-mode ask the user for a pass= word >> when it sees the typical sudo prompt? >>=20 >> 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 trigge= rs this >> behaviour). --=20 "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