emacs-devel
[Top][All Lists]
Advanced

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

emacs 24, tramp and history causing sudo tramp to fail


From: Richard Riley
Subject: emacs 24, tramp and history causing sudo tramp to fail
Date: Wed, 31 Aug 2011 12:26:24 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux)

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.

regards
r.




reply via email to

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