GNU bug report logs -
#21305
25.0.50; `get-buffer-window-list' doc - what order?
Previous Next
Reported by: Drew Adams <drew.adams <at> oracle.com>
Date: Thu, 20 Aug 2015 23:29:02 UTC
Severity: wishlist
Found in version 25.0.50
Done: Eli Zaretskii <eliz <at> gnu.org>
Bug is archived. No further changes may be made.
Full log
Message #11 received at 21305 <at> debbugs.gnu.org (full text, mbox):
> > The doc string says: "Windows are scanned starting with the
> > selected window." What does that mean? Scanned? How so?
> > In what order are they scanned (besides starting with selected)?
> > And how is the scanning used?
>
> I replaced that sentence with this one:
>
> If the selected window displays BUFFER-OR-NAME, it will be the
> first in the resulting list.
>
> Do you see any issues left after that change? (I don't.)
>
> > Please update both the doc string and (elisp) `Buffers and
> > Windows' to tell us what order the list is in.
>
> The order is unspecified, which means the caller should not depend
> on it. I don't think there's anything wrong with that; do you?
Well, it's certainly the prerogative of designers to decide that
the order is undefined and that users cannot depend on it. In
that case, you can close the bug now.
But as one user I'm disappointed. I was hoping for a usable
window order. In fact, I was hoping for something similar to
`buffer-list' - hoping that users would get a list of the windows
(displaying a particular buffer) in order of their last use.
I know no way to obtain such a list, but if there is one, please
be so kind as to let me know. `walk-windows' etc. go through
windows in their "structural" order, but how can I tell, given
a list of windows showing a given buffer, which were last used
after which others?
Yes, my question is outside the scope of this bug (if the list
`get-buffer-window-list' has no order we can depend on or even
if its order is unrelated to the chronological order of access).
Thanks for fixing the doc string.
This bug report was last modified 9 years and 276 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.