all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Richard Riley <rileyrg@googlemail.com>
To: emacs-devel@gnu.org
Subject: emacs 24, tramp and history causing sudo tramp to fail
Date: Wed, 31 Aug 2011 12:26:24 +0200	[thread overview]
Message-ID: <hghb4x6fn3.fsf@news.eternal-september.org> (raw)


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:root@localhost:"
	     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	other threads:[~2011-08-31 10:26 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-08-31 10:26 Richard Riley [this message]
2011-09-20  9:47 ` emacs 24, tramp and history causing sudo tramp to fail Michael Albinus

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=hghb4x6fn3.fsf@news.eternal-september.org \
    --to=rileyrg@googlemail.com \
    --cc=emacs-devel@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.