[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Inconvenience with TRAMP and recentf
From: |
Michael Albinus |
Subject: |
Re: Inconvenience with TRAMP and recentf |
Date: |
Mon, 02 Jul 2007 06:51:19 +0200 |
User-agent: |
Gnus/5.110007 (No Gnus v0.7) Emacs/22.1.50 (gnu/linux) |
Alan Hadsell <ahadsell@mtdiablo.com> 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.