unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#18156: Thread sorting before loose threads are gathered
       [not found] ` <87o9yvov8c.fsf@gnus.org>
@ 2017-01-26 13:58   ` Michael Welsh Duggan
  2017-01-26 14:19     ` Lars Ingebrigtsen
  0 siblings, 1 reply; 2+ messages in thread
From: Michael Welsh Duggan @ 2017-01-26 13:58 UTC (permalink / raw)
  To: Lars Ingebrigtsen; +Cc: 18156

Lars Ingebrigtsen <larsi@gnus.org> writes:

> Michael Welsh Duggan <mwd@md5i.com> writes:
>
>> Thread sorting happens before loose threads are gathered.  See the
>> definition of `gnus-summary-prepare'.  Threads are made, then cut, then
>> sorted, and then gathered.  I believe they should be made, cut,
>> gathered, and then sorted.  A consequence of the current order is that
>> using `gnus-thread-sort-by-most-recent-{number,date}' in the
>> `gnus-thread-sort-functions' will not pay attention to all messages in a
>> gathered thread.
>
> No, but you have `gnus-sort-gathered-threads-function' to sort inside
> the gathered threads, so I think the current algorithm is correct...

Correct or incorrect, it doesn't allow me to do what I want to do.  Here
is my use case:  I want to sort the threads in my summary buffer,
post-gathering, by the date of the most recent article in the thread.
If threads (not the articles in threads) are sorted before they are
gathered, this seems less than possible.

-- 
Michael Welsh Duggan
(mwd@cert.org)





^ permalink raw reply	[flat|nested] 2+ messages in thread

* bug#18156: Thread sorting before loose threads are gathered
  2017-01-26 13:58   ` bug#18156: Thread sorting before loose threads are gathered Michael Welsh Duggan
@ 2017-01-26 14:19     ` Lars Ingebrigtsen
  0 siblings, 0 replies; 2+ messages in thread
From: Lars Ingebrigtsen @ 2017-01-26 14:19 UTC (permalink / raw)
  To: Michael Welsh Duggan; +Cc: 18156

Michael Welsh Duggan <mwd@cert.org> writes:

> Correct or incorrect, it doesn't allow me to do what I want to do.  Here
> is my use case:  I want to sort the threads in my summary buffer,
> post-gathering, by the date of the most recent article in the thread.
> If threads (not the articles in threads) are sorted before they are
> gathered, this seems less than possible.

Hm...  I see...

Well, your sorting function could emulate the gathering and then do the
sorting based on that emulation.  The sorting functions should have
access to everything necessary to do so.

The reason I'm less than enthusiastic about changing the order of things
here is that this is really, really old code, and lots people have written
their own sorting functions based on the way it works.  Changing the
order will lead to breakages.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no





^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2017-01-26 14:19 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <87a97qgzwk.fsf@maru2.md5i.com>
     [not found] ` <87o9yvov8c.fsf@gnus.org>
2017-01-26 13:58   ` bug#18156: Thread sorting before loose threads are gathered Michael Welsh Duggan
2017-01-26 14:19     ` Lars Ingebrigtsen

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).