From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Michael Albinus Newsgroups: gmane.emacs.bugs Subject: Re: Inconvenience with TRAMP and recentf Date: Mon, 02 Jul 2007 06:51:19 +0200 Message-ID: <87fy47z9vc.fsf@gmx.de> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1183364266 31677 80.91.229.12 (2 Jul 2007 08:17:46 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 2 Jul 2007 08:17:46 +0000 (UTC) To: gnu-emacs-bug@ftp.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Jul 02 10:17:44 2007 connect(): Connection refused Return-path: Envelope-to: geb-bug-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 1I5H6O-0004sI-0B for geb-bug-gnu-emacs@m.gmane.org; Mon, 02 Jul 2007 10:17:44 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1I5H6M-0005cQ-O6 for geb-bug-gnu-emacs@m.gmane.org; Mon, 02 Jul 2007 04:17:42 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1I5DrR-0002tO-40 for bug-gnu-emacs@gnu.org; Mon, 02 Jul 2007 00:50:05 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1I5DrQ-0002ra-4M for bug-gnu-emacs@gnu.org; Mon, 02 Jul 2007 00:50:04 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1I5DrQ-0002rL-0C for bug-gnu-emacs@gnu.org; Mon, 02 Jul 2007 00:50:04 -0400 Original-Received: from fencepost.gnu.org ([140.186.70.10]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1I5DrP-0006jg-Lu for bug-gnu-emacs@gnu.org; Mon, 02 Jul 2007 00:50:03 -0400 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by fencepost.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1I5DrP-0004qZ-Dc for gnu-emacs-bug@ftp.gnu.org; Mon, 02 Jul 2007 00:50:03 -0400 Original-Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1I5DrO-0006jW-Nj for gnu-emacs-bug@ftp.gnu.org; Mon, 02 Jul 2007 00:50:03 -0400 Original-Received: from mail.gmx.net ([213.165.64.20]) by monty-python.gnu.org with smtp (Exim 4.60) (envelope-from ) id 1I5DrO-0006jK-92 for gnu-emacs-bug@ftp.gnu.org; Mon, 02 Jul 2007 00:50:02 -0400 Original-Received: (qmail invoked by alias); 02 Jul 2007 04:50:01 -0000 Original-Received: from p57A220A3.dip0.t-ipconnect.de (EHLO arthur.local) [87.162.32.163] by mail.gmx.net (mp041) with SMTP; 02 Jul 2007 06:50:01 +0200 X-Authenticated: #3708877 X-Provags-ID: V01U2FsdGVkX18JQ8s+7FIJtwYK1LqPu+hdM/mVglxY9YlA8f2mnD +ACz4XSFSIknt+ In-Reply-To: (Alan Hadsell's message of "Sun, 01 Jul 2007 18:15:11 -0400") User-Agent: Gnus/5.110007 (No Gnus v0.7) Emacs/22.1.50 (gnu/linux) X-Y-GMX-Trusted: 0 X-detected-kernel: Linux 2.6, seldom 2.4 (older, 4) X-detected-kernel: Linux 2.6, seldom 2.4 (older, 4) X-Mailman-Approved-At: Mon, 02 Jul 2007 04:16:14 -0400 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:16046 Archived-At: Alan Hadsell writes: > I'm running emacs 22.1 on Windows, and have recentf turned on. If > recentf-auto-cleanup is configured with its default, there is a delay > during emacs startup when there are TRAMP-accessed files in the recent > file list. > > This delay is due to the operation of recentf-cleanup, which calls > expand-file-name to canonicalize the names of all the files in its > list. TRAMP intercepts this call, and opens a session to the remote > host (unless one is already open). In expand-file-name, Tramp needs to open a remote connection only in case the local file name is not absolute, and it must expand the home directory to an absolute file name. So the file names in ~/.recentf shall be saved with an absolute local file name. Then you could add file-remote-p to recentf-keep, as it is proposed in the doc-string of recentf-keep. Best regards, Michael.