Announcements and discussions for Gnus, the GNU Emacs Usenet newsreader
 help / color / mirror / Atom feed
* Reverse thread sorting by most recent number
@ 2019-12-18 15:37 Christoph Groth
  2019-12-18 15:56 ` Fraga, Eric
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Christoph Groth @ 2019-12-18 15:37 UTC (permalink / raw)
  To: info-gnus-english

Hello,

I have set gnus-thread-sort-functions to
'(gnus-thread-sort-by-most-recent-number) and this works as it should.

Now I would like to reverse the sorting order so that the order of
threads is consistent with the chronological order of messages within a
thread.

I defined a function

(defun my-thread-sort-by-most-recent-number-reversed (h1 h2)
  "Sort threads such that the thread with the most recently arrived article comes last."
  (< (gnus-thread-highest-number h1) (gnus-thread-highest-number h2)))

that should return the negation of
gnus-thread-sort-by-most-recent-number, but setting
gnus-thread-sort-functions to it does not seem to work.  Single messages
are sorted as expected, and new messages tend to appear at the back of
the buffer, but in some cases threads with new messages are stuck above
older ones.  The sorting order of threads is clearly not the opposite of
the one given by gnus-thread-sort-by-most-recent-number.

I have no clue why Gnus behaves like this...  Anyone has an idea?

Cheers
Christoph

_______________________________________________
info-gnus-english mailing list
info-gnus-english@gnu.org
https://lists.gnu.org/mailman/listinfo/info-gnus-english

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

end of thread, other threads:[~2019-12-19 13:41 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-12-18 15:37 Reverse thread sorting by most recent number Christoph Groth
2019-12-18 15:56 ` Fraga, Eric
2019-12-19  8:24 ` Christoph Groth
2019-12-19 13:41 ` Christoph Groth

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 NNTP newsgroup(s).