GNU bug report logs -
#46153
recentf should keep files in most recently used order
Previous Next
Reported by: reporter <laszlomail <at> protonmail.com>
Date: Thu, 28 Jan 2021 12:38:02 UTC
Severity: normal
Tags: fixed
Fixed in version 28.1
Done: Lars Ingebrigtsen <larsi <at> gnus.org>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
recentf is very useful for revisiting files, I use it a lot with
completion to reopen files. Completion which puts the most recent
file first.
However, it has a slight problem: it shows the recently opened
files, instead of the recently *used* files.
For example, if I open files a, b, c, d, e in this order and use
them, but in the end I use only files a and b for the last part
of my task and want to revisit this files later then recentf
provides this list (most recent first):
e
d
c
b
a
But I used a and b last a lot, so it's more likely I want to open
those again, so recentf should give me, for example:
b
a
d
e
c
So it should track buffer switches as well and update the recentf
list by moving the file corresponding to the current buffer to
the beginnining of the list (maybe updating the list from an idle
timer if it's costly, there is no need for immediate updates for a
long recentf list, I have 2000 files in it).
This is much more useful than simply tracking file
openings. Other tools also put most recently used files
first. Emacs should do the same.
This bug report was last modified 4 years and 113 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.