[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Reverse thread sorting by most recent number

From: Christoph Groth
Subject: Reverse thread sorting by most recent number
Date: Wed, 18 Dec 2019 16:37:59 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux)


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

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?


reply via email to

[Prev in Thread] Current Thread [Next in Thread]