[Top][All Lists]

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

Re: emacs 24, tramp and history causing sudo tramp to fail

From: Michael Albinus
Subject: Re: emacs 24, tramp and history causing sudo tramp to fail
Date: Tue, 20 Sep 2011 11:47:34 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux)

Richard Riley <address@hidden> writes:

> here's a little bug which I came across and am wondering if I can
> configure it out.
> Open a file and then re-Open it as root 
> I use
> (defun find-alternative-file-with-sudo ()
>   "Open current buffer as root!"
>   (interactive)
>   (when buffer-file-name
>     (find-alternate-file
>      (concat "/sudo:address@hidden:"
>            buffer-file-name))))
> edit, save, quit the file.
> open some more files.
> now C-x C-f and use M-p to find a previous file name in the open
> history. The problem is that the tramp sudo line is one of the history 
> elements and
> as soon as it comes into the minibuffer input it triggers a background
> password process causing all further sudo opens to fail.

I've tried your scenario, but the "tramp sudo line" does not go into
`file-name-history'. Could you, please, provide a recipe for reproduction?

Maybe via "M-x report-emacs-bug", which shows the recent keys you have typed.

> regards
> r.

Best regards, Michael.

reply via email to

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