From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Tassilo Horn Newsgroups: gmane.emacs.help Subject: Re: Sorting with threads in Gnus Date: Fri, 26 Jul 2013 07:48:05 +0200 Message-ID: <87iozxq3ca.fsf@thinkpad.tsdh.org> References: <87d2q8qy0h.fsf@ericabrahamsen.net> <87vc40drow.fsf@thinkpad.tsdh.org> <871u6mlyx5.fsf@ericabrahamsen.net> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1374817711 22400 80.91.229.3 (26 Jul 2013 05:48:31 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 26 Jul 2013 05:48:31 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Jul 26 07:48:32 2013 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1V2atD-0007xe-5b for geh-help-gnu-emacs@m.gmane.org; Fri, 26 Jul 2013 07:48:31 +0200 Original-Received: from localhost ([::1]:38159 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V2atC-0003kJ-Ii for geh-help-gnu-emacs@m.gmane.org; Fri, 26 Jul 2013 01:48:30 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:34145) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V2at1-0003jN-4j for help-gnu-emacs@gnu.org; Fri, 26 Jul 2013 01:48:21 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1V2asz-0003Zs-RH for help-gnu-emacs@gnu.org; Fri, 26 Jul 2013 01:48:19 -0400 Original-Received: from plane.gmane.org ([80.91.229.3]:34801) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V2asz-0003Zm-Kh for help-gnu-emacs@gnu.org; Fri, 26 Jul 2013 01:48:17 -0400 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1V2asy-0007fb-9d for help-gnu-emacs@gnu.org; Fri, 26 Jul 2013 07:48:16 +0200 Original-Received: from 91-67-164-26-dynip.superkabel.de ([91.67.164.26]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 26 Jul 2013 07:48:16 +0200 Original-Received: from tsdh by 91-67-164-26-dynip.superkabel.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 26 Jul 2013 07:48:16 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 79 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 91-67-164-26-dynip.superkabel.de User-Agent: Gnus/5.130008 (Ma Gnus v0.8) Emacs/24.3.50 (gnu/linux) Cancel-Lock: sha1:SI9UIsQ+8/WeaBvSWs7Ac1DvuXc= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:92436 Archived-At: Eric Abrahamsen writes: Hi Eric, >> However, as soon as I add `gnus-thread-sort-by-total-score' and >> `gnus-thread-sort-by-most-recent-date' to >> `gnus-thread-sort-functions', the sorting inside threads goes wonky >> as well... > > I doubt I'll be able to help -- I don't use scoring, and most of my gnus > configurations seem to involve some degree of magical thinking. > > Just for clarity, your desired setup, that goes "wonky", would look like > this: > > (setq gnus-thread-sort-functions > '(gnus-thread-sort-by-total-score > gnus-thread-sort-by-most-recent-date) > gnus-sort-gathered-threads-function > 'gnus-thread-sort-by-date) > > Is that right? Not quite. I think that would be my perfect setup: --8<---------------cut here---------------start------------->8--- (setq gnus-thread-sort-functions '(gnus-thread-sort-by-number gnus-thread-sort-by-date gnus-thread-sort-by-most-recent-date gnus-thread-sort-by-total-score) gnus-sort-gathered-threads-function 'gnus-thread-sort-by-date) --8<---------------cut here---------------end--------------->8--- > So it's the 'gnus-thread-sort-by-date effect inside the threads > themselves that's going wrong? Wonky how? I don't really see its effect. With `gnus-sort-gathered-threads-function' set to the default value `gnus-thread-sort-by-number' I get the same sorting order. The problem is that Gnus seems to sort threads and also subthreads with `gnus-thread-sort-functions'. So in my case, high-score subthreads will come before low-score subthreads, and when the score is equal, subthreads with more recent articles will come before subthreads with older recent articles. But inside threads, I want sorting to be strictly chronological from old to new. For example, below Y should be before the subthread X, because it's older. --8<---------------cut here---------------start------------->8--- O ┃ ┃Juanma Barranquero ┃ ╭● frame size&position woes O ┃ ┃martin rudalics ┃ ├──❯ ;; X O ┃ ┃Juanma Barranquero ┃ │╰──❯ O ┃ ┃martin rudalics ┃ │ ├──❯ O ┃ ┃Juanma Barranquero ┃ │ │╰──❯ O ┃ ┃Eli Zaretskii ┃ │ │ ╰──❯ O ┃ ┃Juanma Barranquero ┃ │ │ ╰──❯ O ┃ ┃Eli Zaretskii ┃ │ │ ╰──❯ O ┃ ┃Juanma Barranquero ┃ │ │ ╰──❯ O ┃ ┃Eli Zaretskii ┃ │ │ ╰──❯ O ┃ ┃Juanma Barranquero ┃ │ │ ╰──❯ O ┃ ┃Eli Zaretskii ┃ │ │ ╰──❯ O ┃ ┃Juanma Barranquero ┃ │ │ ╰──❯ O ┃ ┃Eli Zaretskii ┃ │ │ ╰──❯ O ┃ ┃Juanma Barranquero ┃ │ │ ╰──❯ O ┃ ┃Eli Zaretskii ┃ │ │ ╰──❯ O ┃ ┃Juanma Barranquero ┃ │ │ ╰──❯ O ┃ ┃Juanma Barranquero ┃ │ ╰──❯ O ┃ ┃Juanma Barranquero ┃ ╰──❯ ;; Y --8<---------------cut here---------------end--------------->8--- I hoped that `gnus-thread-sort-functions' was applied only to thread roots, and `gnus-sort-gathered-threads-function' to subthreads, but that doesn't seem to be tha case. Bye, Tassilo