From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Michael Albinus Newsgroups: gmane.emacs.help Subject: Re: How to stop TRAMP from asking for sudo password on every startup? Date: Thu, 17 Apr 2008 19:17:26 +0200 Message-ID: <87r6d41jvd.fsf@gmx.de> References: <13255b91-560c-4244-a536-29ce2b79fd2f@t54g2000hsg.googlegroups.com> <20080417112113.GA19413@groll.co.za> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1208454637 13819 80.91.229.12 (17 Apr 2008 17:50:37 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 17 Apr 2008 17:50:37 +0000 (UTC) Cc: help-gnu-emacs@gnu.org, Jason Rumney To: Jonathan Groll Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Apr 17 19:51:01 2008 connect(): Connection refused Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1JmXid-0001Qq-Pc for geh-help-gnu-emacs@m.gmane.org; Thu, 17 Apr 2008 19:16:20 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JmXhy-0001Mz-Vv for geh-help-gnu-emacs@m.gmane.org; Thu, 17 Apr 2008 13:15:39 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JmXhf-0001Mg-9A for help-gnu-emacs@gnu.org; Thu, 17 Apr 2008 13:15:19 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JmXhd-0001ME-QW for help-gnu-emacs@gnu.org; Thu, 17 Apr 2008 13:15:18 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JmXhd-0001MB-Lg for help-gnu-emacs@gnu.org; Thu, 17 Apr 2008 13:15:17 -0400 Original-Received: from mail.gmx.net ([213.165.64.20]) by monty-python.gnu.org with smtp (Exim 4.60) (envelope-from ) id 1JmXhd-0001G3-5V for help-gnu-emacs@gnu.org; Thu, 17 Apr 2008 13:15:17 -0400 Original-Received: (qmail invoked by alias); 17 Apr 2008 17:15:10 -0000 Original-Received: from p57A201CB.dip0.t-ipconnect.de (EHLO arthur.local) [87.162.1.203] by mail.gmx.net (mp013) with SMTP; 17 Apr 2008 19:15:10 +0200 X-Authenticated: #3708877 X-Provags-ID: V01U2FsdGVkX1+bOO1BlaibWI2bkCt/c5KWnSn5ksG9EWwxxoQlvT yzBF5IMn5AuzER In-Reply-To: <20080417112113.GA19413@groll.co.za> (Jonathan Groll's message of "Thu, 17 Apr 2008 13:21:13 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) X-Y-GMX-Trusted: 0 X-detected-kernel: by monty-python.gnu.org: Genre and OS details not recognized. X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:53359 Archived-At: Jonathan Groll writes: > On Wed, Apr 16, 2008 at 08:32:53AM -0700, Jason Rumney wrote: >> On Apr 16, 9:45 am, Jonathan Groll wrote: >> >> > This problem seems to have >> > started after I opened some buffers with /sudo::/ , from what I can >> > tell there is nothing in my .emacs or custom.el actively starting >> > tramp. >> >> Do you use desktop.el or some other package that saves state between >> sessions? > > Aha! You've set me on the right track, it was: > (require 'recentf) > (recentf-mode 1) See variable `recentf-keep'. The following might prevent the trouble in the future (I assume you're running Emacs 22): (add-to-list 'recentf-keep 'file-remote-p) With Emacs 23, this won't be necessary. > Many thanks, > Jonathan. Best regards, Michael.