[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Inconvenience with TRAMP and recentf

From: Alan Hadsell
Subject: Re: Inconvenience with TRAMP and recentf
Date: Mon, 02 Jul 2007 11:31:42 -0400
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1 (windows-nt)

Michael Albinus <address@hidden> 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:address@hidden:/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

reply via email to

[Prev in Thread] Current Thread [Next in Thread]