From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Richard Riley Newsgroups: gmane.emacs.devel Subject: emacs 24, tramp and history causing sudo tramp to fail Date: Wed, 31 Aug 2011 12:26:24 +0200 Organization: aich tea tea pea dicky riley dot net Message-ID: Reply-To: emacs-devel@gnu.org NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1314786285 8698 80.91.229.12 (31 Aug 2011 10:24:45 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 31 Aug 2011 10:24:45 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Aug 31 12:24:42 2011 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1QyhyL-0004AE-LJ for ged-emacs-devel@m.gmane.org; Wed, 31 Aug 2011 12:24:41 +0200 Original-Received: from localhost ([::1]:58698 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QyhyL-0005Lo-3T for ged-emacs-devel@m.gmane.org; Wed, 31 Aug 2011 06:24:41 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:55857) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QyhyI-0005Ji-CB for emacs-devel@gnu.org; Wed, 31 Aug 2011 06:24:39 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QyhyH-0004mV-GO for emacs-devel@gnu.org; Wed, 31 Aug 2011 06:24:38 -0400 Original-Received: from lo.gmane.org ([80.91.229.12]:59316) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QyhyH-0004mK-Ap for emacs-devel@gnu.org; Wed, 31 Aug 2011 06:24:37 -0400 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1Qyhy8-00043h-Oi for emacs-devel@gnu.org; Wed, 31 Aug 2011 12:24:28 +0200 Original-Received: from 85.183.18.158 ([85.183.18.158]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 31 Aug 2011 12:24:28 +0200 Original-Received: from rileyrg by 85.183.18.158 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 31 Aug 2011 12:24:28 +0200 X-Injected-Via-Gmane: http://gmane.org/ Mail-Followup-To: emacs-devel@gnu.org Original-Lines: 28 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: 85.183.18.158 Mail-Copies-To: never User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) Cancel-Lock: sha1:51sQ26tJgcQCu58PA8rTDHv1wKQ= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 80.91.229.12 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:143656 Archived-At: 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.