From: Jesper Harder <harder@ifa.au.dk>
Cc: emacs-devel <emacs-devel@gnu.org>
Subject: Re: recentf-cleanup, file-readable-p & remote files
Date: Fri, 19 Sep 2003 03:45:03 +0200 [thread overview]
Message-ID: <m3isnp7dr4.fsf@defun.localdomain> (raw)
In-Reply-To: <10995583.1063874884674.JavaMail.www@wwinf0401> (David PONCE's message of "Thu, 18 Sep 2003 10:48:04 +0200 (CEST)")
David PONCE <david.ponce@wanadoo.fr> writes:
>> In the example from my previous post doing `file-readable-p' is
>> ~500 times slower than actually fetching the file!
>
> Could you try file-exists-p please? Does it work better?
No, it works the same way.
> A possibility could be to consider that remote files are always
> readable and change `recentf-file-readable-p' like this:
>
> (or (file-remote-p filename)
> (file-readable-p filename)))
>
> Remote files then could be manually removed from the recent list (M-x
> recentf-edit-list), or will be removed naturally by the LRU mechanism
Sounds good to me.
> Perhaps, in your case, another acceptable workaround could be to
> disable the `recentf-auto-cleanup' feature (customize this option to
> `never')
Your previous suggestion about adding `file-remote-p' to
`recentf-exclude' works fine for me personally.
I was thinking more about whether the side effects of the default
setting are desirable -- i.e. that turning on recentf might initiate a
multi-megabyte download of a directory listing.
next prev parent reply other threads:[~2003-09-19 1:45 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-09-18 8:48 recentf-cleanup, file-readable-p & remote files David PONCE
2003-09-19 1:45 ` Jesper Harder [this message]
-- strict thread matches above, loose matches on Subject: below --
2003-09-16 7:51 David PONCE
2003-09-16 7:58 ` Miles Bader
2003-09-17 18:02 ` Richard Stallman
2003-09-17 20:12 ` Jesper Harder
2003-09-18 15:14 ` Richard Stallman
2003-09-17 2:10 ` Jesper Harder
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=m3isnp7dr4.fsf@defun.localdomain \
--to=harder@ifa.au.dk \
--cc=emacs-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).