all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: pjb@informatimago.com (Pascal J. Bourguignon)
To: help-gnu-emacs@gnu.org
Subject: Re: sudo command with minibuffer password prompt
Date: Thu, 17 Dec 2009 22:15:14 +0100	[thread overview]
Message-ID: <878wd1fgkd.fsf@galatea.local> (raw)
In-Reply-To: 9fc65313-b7bc-4327-94dd-e72a9e636248@m38g2000yqd.googlegroups.com

Nordlöw <per.nordlow@gmail.com> writes:

>> Then run "sudo apt-get install" from the *shell* buffer.  You should
>> get a password prompt in the minibuffer.
>
> Nice1
>
> But I still need to solve this programmatically in a lisp program.
> I'll take a look at eshell and see if I can script it using eshell-
> functions.

In the case of M-x shell, it's comint that's working, and there must
be some comint filter installed  by shell.  Having a look at that code
should allow you to learn how to do it programmatically.

Of course, an alternative would be to see how tramp does it, and do it
that way.


Use the source, Luke!

-- 
__Pascal Bourguignon__


  reply	other threads:[~2009-12-17 21:15 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20091216170829.14846AF606@mxperim7.sea5.speakeasy.net>
     [not found] ` <mailman.13084.1261017601.2239.help-gnu-emacs@gnu.org>
2009-12-17 10:03   ` sudo command with minibuffer password prompt Nordlöw
2009-12-17 21:15     ` Pascal J. Bourguignon [this message]
2009-12-16 11:48 Nordlöw
2009-12-16 13:04 ` Pascal J. Bourguignon
2009-12-16 13:56   ` Nordlöw
2009-12-16 13:59     ` Nordlöw
2009-12-17  2:39     ` Steve Revilak
2009-12-17  6:22       ` Thierry Volpiatto
2009-12-16 20:37 ` Michael Albinus
2009-12-17 10:44 ` David Kastrup

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=878wd1fgkd.fsf@galatea.local \
    --to=pjb@informatimago.com \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.