* bug#46153: recentf should keep files in most recently used order @ 2021-01-28 12:37 laszlomail--- via Bug reports for GNU Emacs, the Swiss army knife of text editors [not found] ` <handler.46153.B.161183744421386.ack@debbugs.gnu.org> 0 siblings, 1 reply; 3+ messages in thread From: laszlomail--- via Bug reports for GNU Emacs, the Swiss army knife of text editors @ 2021-01-28 12:37 UTC (permalink / raw) To: 46153 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. ^ permalink raw reply [flat|nested] 3+ messages in thread
[parent not found: <handler.46153.B.161183744421386.ack@debbugs.gnu.org>]
* bug#46153: Acknowledgement (recentf should keep files in most recently used order) [not found] ` <handler.46153.B.161183744421386.ack@debbugs.gnu.org> @ 2021-01-28 14:43 ` laszlomail--- via Bug reports for GNU Emacs, the Swiss army knife of text editors 2021-01-29 5:47 ` bug#46153: recentf should keep files in most recently used order Lars Ingebrigtsen 0 siblings, 1 reply; 3+ messages in thread From: laszlomail--- via Bug reports for GNU Emacs, the Swiss army knife of text editors @ 2021-01-28 14:43 UTC (permalink / raw) To: 46153@debbugs.gnu.org Apparently, this is all what's needed: (add-hook 'buffer-list-update-hook 'recentf-track-opened-file) So buffer-list-update-hook should be added to recentf-used-hooks in recentf.el ‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐ On Thursday, January 28, 2021 1:38 PM, <help-debbugs@gnu.org> wrote: > Thank you for filing a new bug report with debbugs.gnu.org. > > This is an automatically generated reply to let you know your message > has been received. > > Your message is being forwarded to the package maintainers and other > interested parties for their attention; they will reply in due course. > > Your message has been sent to the package maintainer(s): > bug-gnu-emacs@gnu.org > > If you wish to submit further information on this problem, please > send it to 46153@debbugs.gnu.org. > > Please do not send mail to help-debbugs@gnu.org unless you wish > to report a problem with the Bug-tracking system. > > ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- > > 46153: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=46153 > GNU Bug Tracking System > Contact help-debbugs@gnu.org with problems ^ permalink raw reply [flat|nested] 3+ messages in thread
* bug#46153: recentf should keep files in most recently used order 2021-01-28 14:43 ` bug#46153: Acknowledgement (recentf should keep files in most recently used order) laszlomail--- via Bug reports for GNU Emacs, the Swiss army knife of text editors @ 2021-01-29 5:47 ` Lars Ingebrigtsen 0 siblings, 0 replies; 3+ messages in thread From: Lars Ingebrigtsen @ 2021-01-29 5:47 UTC (permalink / raw) To: reporter; +Cc: 46153@debbugs.gnu.org reporter <laszlomail@protonmail.com> writes: > Apparently, this is all what's needed: > > (add-hook 'buffer-list-update-hook 'recentf-track-opened-file) > > So buffer-list-update-hook should be added to recentf-used-hooks > in recentf.el Some people would want the current behaviour, so I don't think doing this by default would be the right thing to do, but I can certainly see people who'd prefer recentf to work in this way. So I've mentioned doing this `add-hook' in the recentf-mode doc string in Emacs 28. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no ^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2021-01-29 5:47 UTC | newest] Thread overview: 3+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2021-01-28 12:37 bug#46153: recentf should keep files in most recently used order laszlomail--- via Bug reports for GNU Emacs, the Swiss army knife of text editors [not found] ` <handler.46153.B.161183744421386.ack@debbugs.gnu.org> 2021-01-28 14:43 ` bug#46153: Acknowledgement (recentf should keep files in most recently used order) laszlomail--- via Bug reports for GNU Emacs, the Swiss army knife of text editors 2021-01-29 5:47 ` bug#46153: recentf should keep files in most recently used order Lars Ingebrigtsen
Code repositories for project(s) associated with this external index https://git.savannah.gnu.org/cgit/emacs.git https://git.savannah.gnu.org/cgit/emacs/org-mode.git This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.