* bug#37772: 26.3; Doc of recentf, particularly `recentf-list'
@ 2019-10-15 22:45 Drew Adams
2019-10-17 2:48 ` Lars Ingebrigtsen
2019-10-17 17:11 ` Eli Zaretskii
0 siblings, 2 replies; 4+ messages in thread
From: Drew Adams @ 2019-10-15 22:45 UTC (permalink / raw)
To: 37772
Many users use recentf. Likewise, libraries. Nowhere is it said what
order the files are listed in, i.e., the order of the elements of
`recentf-list'. The answer is apparently that, by default at least, a
file is pushed to the front of the list when it is "opened" or written.
A more exact answer is that `recentf-list' is in reverse chronological
order of calls to `recentf-track-opened-file'. And by default that
function is added to these hooks: `find-file-hook' and
`write-file-functions'.
In GNU Emacs 26.3 (build 1, x86_64-w64-mingw32)
of 2019-08-29
Repository revision: 96dd0196c28bc36779584e47fffcca433c9309cd
Windowing system distributor `Microsoft Corp.', version 10.0.17763
Configured using:
`configure --without-dbus --host=x86_64-w64-mingw32
--without-compress-install 'CFLAGS=-O2 -static -g3''
^ permalink raw reply [flat|nested] 4+ messages in thread
* bug#37772: 26.3; Doc of recentf, particularly `recentf-list'
2019-10-15 22:45 bug#37772: 26.3; Doc of recentf, particularly `recentf-list' Drew Adams
@ 2019-10-17 2:48 ` Lars Ingebrigtsen
2019-10-17 15:41 ` Drew Adams
2019-10-17 17:11 ` Eli Zaretskii
1 sibling, 1 reply; 4+ messages in thread
From: Lars Ingebrigtsen @ 2019-10-17 2:48 UTC (permalink / raw)
To: Drew Adams; +Cc: 37772
Drew Adams <drew.adams@oracle.com> writes:
> Many users use recentf. Likewise, libraries. Nowhere is it said what
> order the files are listed in, i.e., the order of the elements of
> `recentf-list'. The answer is apparently that, by default at least, a
> file is pushed to the front of the list when it is "opened" or written.
>
> A more exact answer is that `recentf-list' is in reverse chronological
> order of calls to `recentf-track-opened-file'. And by default that
> function is added to these hooks: `find-file-hook' and
> `write-file-functions'.
I think that seems pretty self-evident -- the doc strings talk about
"most recent" etc, so what other ordering could be meant?
So I don't see anything to fix here and I'm closing this bug report.
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
^ permalink raw reply [flat|nested] 4+ messages in thread
* bug#37772: 26.3; Doc of recentf, particularly `recentf-list'
2019-10-17 2:48 ` Lars Ingebrigtsen
@ 2019-10-17 15:41 ` Drew Adams
0 siblings, 0 replies; 4+ messages in thread
From: Drew Adams @ 2019-10-17 15:41 UTC (permalink / raw)
To: Lars Ingebrigtsen; +Cc: 37772
> > Many users use recentf. Likewise, libraries. Nowhere is it said
> > what order the files are listed in, i.e., the order of the elements of
> > `recentf-list'. The answer is apparently that, by default at least,
> > a file is pushed to the front of the list when it is "opened" or
> > written.
> >
> > A more exact answer is that `recentf-list' is in reverse
> > chronological order of calls to `recentf-track-opened-file'.
> > And by default that function is added to these hooks:
> > `find-file-hook' and `write-file-functions'.
>
> I think that seems pretty self-evident -- the doc strings talk about
> "most recent" etc, so what other ordering could be meant?
It's not obvious at all. That the 30 most recently
opened files are listed says _nothing_ about the
order in which they're listed.
And nothing is said about the situations when (by
default) the list (`recentf-list') is updated.
The answer is in the hooks. It's not about
re-selecting the window of a file buffer or
changing a file outside Emacs, for instance.
(Not by default, at least.)
> So I don't see anything to fix here and I'm closing this bug report.
Unfortunate.
^ permalink raw reply [flat|nested] 4+ messages in thread
* bug#37772: 26.3; Doc of recentf, particularly `recentf-list'
2019-10-15 22:45 bug#37772: 26.3; Doc of recentf, particularly `recentf-list' Drew Adams
2019-10-17 2:48 ` Lars Ingebrigtsen
@ 2019-10-17 17:11 ` Eli Zaretskii
1 sibling, 0 replies; 4+ messages in thread
From: Eli Zaretskii @ 2019-10-17 17:11 UTC (permalink / raw)
To: Drew Adams; +Cc: 37772
> Date: Tue, 15 Oct 2019 15:45:48 -0700 (PDT)
> From: Drew Adams <drew.adams@oracle.com>
>
> Many users use recentf. Likewise, libraries. Nowhere is it said what
> order the files are listed in
Thanks, I added that.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2019-10-17 17:11 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-10-15 22:45 bug#37772: 26.3; Doc of recentf, particularly `recentf-list' Drew Adams
2019-10-17 2:48 ` Lars Ingebrigtsen
2019-10-17 15:41 ` Drew Adams
2019-10-17 17:11 ` Eli Zaretskii
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.