help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: sudo command with minibuffer password prompt


From: Thierry Volpiatto
Subject: Re: sudo command with minibuffer password prompt
Date: Thu, 17 Dec 2009 07:22:48 +0100
User-agent: Gnus/5.110011 (No Gnus v0.11) Emacs/23.1.90 (gnu/linux)

Hi, if you are an anything user you will find in anything-config.el
sources to manage apt-* from emacs.

http://www.emacswiki.org/cgi-bin/emacs/Anything

Steve Revilak <steve@srevilak.net> writes:

>>From: Nordl?w <per.nordlow@gmail.com>
>
>>In both Vanilla Emacs 22 and 23 CVS
>>  (require 'tramp)
>>  (shell-command "sudo touch ~/.emacs")
>>fails with the message
>>  sudo: no tty present and no askpass program specified
>>
>>What is missing?
>
> Using M-! and typing "sudo ls" into the minibuffer, I see the same
> error message with Emacs 23.1.1 on OpenSuse.  Mac OS X displays a
> password prompt in the minibuffer, but the password prompt doesn't
> seem to accept focus (emacs 22 and 23).
>
>>What I really want to do is to spawn an install using apt-get install
>>from within emacs.
>
> Try this.
>
>  M-x shell
>
> Then run "sudo apt-get install" from the *shell* buffer.  You should
> get a password prompt in the minibuffer.
>
> (FWIW, I thought this was one of the neatest additions in Emacs 22 :)
>
> Steve
>

-- 
A + Thierry Volpiatto
Location: Saint-Cyr-Sur-Mer - France





reply via email to

[Prev in Thread] Current Thread [Next in Thread]