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 21:37:55 +0200 Message-ID: <87odiuegvg.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 1183405018 22560 80.91.229.12 (2 Jul 2007 19:36:58 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 2 Jul 2007 19:36:58 +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 21:36:56 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 1I5Rhc-00084p-KE for geb-bug-gnu-emacs@m.gmane.org; Mon, 02 Jul 2007 21:36:52 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1I5Rhc-0001r7-3t for geb-bug-gnu-emacs@m.gmane.org; Mon, 02 Jul 2007 15:36:52 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1I5RhZ-0001qs-Vc for bug-gnu-emacs@gnu.org; Mon, 02 Jul 2007 15:36:49 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1I5RhX-0001qf-F4 for bug-gnu-emacs@gnu.org; Mon, 02 Jul 2007 15:36:48 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1I5RhX-0001qc-CE for bug-gnu-emacs@gnu.org; Mon, 02 Jul 2007 15:36:47 -0400 Original-Received: from fencepost.gnu.org ([140.186.70.10]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1I5RhX-00037H-03 for bug-gnu-emacs@gnu.org; Mon, 02 Jul 2007 15:36:47 -0400 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by fencepost.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1I5RhW-0006Jf-QC for gnu-emacs-bug@ftp.gnu.org; Mon, 02 Jul 2007 15:36:46 -0400 Original-Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1I5RhW-000373-Ad for gnu-emacs-bug@ftp.gnu.org; Mon, 02 Jul 2007 15:36:46 -0400 Original-Received: from mail.gmx.net ([213.165.64.20]) by monty-python.gnu.org with smtp (Exim 4.60) (envelope-from ) id 1I5RhV-00036p-Sh for gnu-emacs-bug@ftp.gnu.org; Mon, 02 Jul 2007 15:36:46 -0400 Original-Received: (qmail invoked by alias); 02 Jul 2007 19:36:44 -0000 Original-Received: from p57A23346.dip0.t-ipconnect.de (EHLO arthur.local) [87.162.51.70] by mail.gmx.net (mp033) with SMTP; 02 Jul 2007 21:36:44 +0200 X-Authenticated: #3708877 X-Provags-ID: V01U2FsdGVkX19CwpY8GzdCSphfOSQ+p/uozx3vvdU/5tK5cQWTuj 5vxrEci0aTqIxL In-Reply-To: (Alan Hadsell's message of "Mon, 02 Jul 2007 11:31:42 -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-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:16053 Archived-At: Alan Hadsell writes: > 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. I did test it locally (Emacs 22.1.50.2, Tramp 2.0.56). If the remote file name in .recentf contains already an absolute local file name, expand-file-name does NOT open a connection. The connection is opened by file-readable-p. The remote connection is NOT opened with the following settings in my .emacs: (require 'recentf) (add-to-list 'recentf-keep 'file-remote-p) (recentf-mode 1) > 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. Yes. But it seems all file names in .recentf are already absolute; at least according to my tests. So the settings above might be sufficient, aren't they? Best regards, Michael.