From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Alan Hadsell Newsgroups: gmane.emacs.bugs Subject: Re: Inconvenience with TRAMP and recentf Date: Mon, 02 Jul 2007 11:31:42 -0400 Organization: Mt. Diablo Systems Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1183390311 31606 80.91.229.12 (2 Jul 2007 15:31:51 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 2 Jul 2007 15:31:51 +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 17:31:49 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 1I5NsT-00056n-8m for geb-bug-gnu-emacs@m.gmane.org; Mon, 02 Jul 2007 17:31:49 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1I5NsS-0003xx-Dd for geb-bug-gnu-emacs@m.gmane.org; Mon, 02 Jul 2007 11:31:48 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1I5NsQ-0003xi-60 for bug-gnu-emacs@gnu.org; Mon, 02 Jul 2007 11:31:46 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1I5NsO-0003xW-Kx for bug-gnu-emacs@gnu.org; Mon, 02 Jul 2007 11:31:44 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1I5NsO-0003xT-Fc for bug-gnu-emacs@gnu.org; Mon, 02 Jul 2007 11:31:44 -0400 Original-Received: from fencepost.gnu.org ([140.186.70.10]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1I5NsO-0008RE-6b for bug-gnu-emacs@gnu.org; Mon, 02 Jul 2007 11:31:44 -0400 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by fencepost.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1I5NsO-0003b1-0I for gnu-emacs-bug@ftp.gnu.org; Mon, 02 Jul 2007 11:31:44 -0400 Original-Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1I5NsN-0008Qy-IE for gnu-emacs-bug@ftp.gnu.org; Mon, 02 Jul 2007 11:31:43 -0400 Original-Received: from trinity.supernews.net ([216.168.1.22]) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1I5NsN-0008Qm-4i for gnu-emacs-bug@ftp.gnu.org; Mon, 02 Jul 2007 11:31:43 -0400 Original-Received: from pa-sjc-01.sjc-v12.supernews.net ([10.20.222.34]:54147 helo=pa-sjc-01.supernews.net) by trinity.supernews.net with esmtp (Exim 4.66 (FreeBSD)) (envelope-from ) id 1I5NsL-0001DZ-RE for gnu-emacs-bug@ftp.gnu.org; Mon, 02 Jul 2007 15:31:41 +0000 Original-Received: (from news@localhost) by pa-sjc-01.supernews.net (8.13.8/8.13.8/Submit) id l62FVfQc083260 for gnu-emacs-bug@prep.ai.mit.edu; Mon, 2 Jul 2007 15:31:41 GMT (envelope-from nntp-bounce@supernews.net) Original-Path: news.supernews.com!not-for-mail Original-Newsgroups: gnu.emacs.bug Mail-Copies-To: never User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1 (windows-nt) Cancel-Lock: sha1:ZxuTxQse4g0u/v1Q7FWTQbryEYY= Original-X-Complaints-To: abuse@supernews.com Original-Lines: 25 X-detected-kernel: FreeBSD 6.x (1) X-detected-kernel: Linux 2.6, seldom 2.4 (older, 4) 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:16052 Archived-At: Michael Albinus writes: > 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. In my case, the entries in my recentf-list are already absolute: e.g. /pscp:al@fibonacci.pacengr.com:/home/al/delete_data.sql. But TRAMP still opens a new session whenever I start emacs. Incidentally, maybe it would be a good idea to canonicalize the remote filenames when they are first placed in the recentf-list, rather than waiting for recentf-cleanup to do it. > 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. Unfortunately, that does not bypass the call to expand-file-name in recentf-expand-file-name, which is called from recentf-cleanup before the "keep" determination is made. It is the call to expand-file-name that causes the remote session to be opened. -- Alan Hadsell