From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Lars Ingebrigtsen Newsgroups: gmane.emacs.bugs Subject: bug#28477: 25.2; Gnus threading sometimes erratic Date: Wed, 11 Apr 2018 23:45:07 +0200 Message-ID: <87r2nlwh7g.fsf@mouse.gnus.org> References: <87shflgb0o.fsf@moondust.localdomain> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1523483050 25732 195.159.176.226 (11 Apr 2018 21:44:10 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 11 Apr 2018 21:44:10 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) Cc: 28477@debbugs.gnu.org To: nljlistbox2@gmail.com (N. Jackson) Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Apr 11 23:44:05 2018 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1f6NXA-0006Wp-NM for geb-bug-gnu-emacs@m.gmane.org; Wed, 11 Apr 2018 23:44:04 +0200 Original-Received: from localhost ([::1]:60615 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1f6NZH-0005mx-9r for geb-bug-gnu-emacs@m.gmane.org; Wed, 11 Apr 2018 17:46:15 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:54250) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1f6NZ7-0005lP-1K for bug-gnu-emacs@gnu.org; Wed, 11 Apr 2018 17:46:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1f6NZ3-00053V-VQ for bug-gnu-emacs@gnu.org; Wed, 11 Apr 2018 17:46:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:38757) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1f6NZ3-00053N-R3 for bug-gnu-emacs@gnu.org; Wed, 11 Apr 2018 17:46:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1f6NZ3-0005WM-KJ; Wed, 11 Apr 2018 17:46:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org, bugs@gnus.org Resent-Date: Wed, 11 Apr 2018 21:46:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 28477 X-GNU-PR-Package: emacs,gnus X-GNU-PR-Keywords: Original-Received: via spool by 28477-submit@debbugs.gnu.org id=B28477.152348312021156 (code B ref 28477); Wed, 11 Apr 2018 21:46:01 +0000 Original-Received: (at 28477) by debbugs.gnu.org; 11 Apr 2018 21:45:20 +0000 Original-Received: from localhost ([127.0.0.1]:46651 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1f6NYN-0005VA-Vi for submit@debbugs.gnu.org; Wed, 11 Apr 2018 17:45:20 -0400 Original-Received: from hermes.netfonds.no ([80.91.224.195]:46603) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1f6NYL-0005Uy-85 for 28477@debbugs.gnu.org; Wed, 11 Apr 2018 17:45:18 -0400 Original-Received: from 46.67.12.60.tmi.telenormobil.no ([46.67.12.60] helo=corrigan) by hermes.netfonds.no with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1f6NYI-0005o6-4y; Wed, 11 Apr 2018 23:45:16 +0200 Original-Received: from larsi by corrigan with local (Exim 4.89) (envelope-from ) id 1f6NYC-0002Xh-4S; Wed, 11 Apr 2018 23:45:08 +0200 In-Reply-To: <87shflgb0o.fsf@moondust.localdomain> (N. Jackson's message of "Sun, 17 Sep 2017 01:16:39 -0400") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:145098 Archived-At: nljlistbox2@gmail.com (N. Jackson) writes: > Sometimes when threading is enabled, Gnus displays the messages in > a thread in a bizarre order in the *Summary* buffer, with an older > message shown as a reply to a newer message. This cannot be right > unless the author of one of the messages has a time machine. It difficult to tell from the images you included, but it seems like what you're seeing is the result of "gathered threads": Articles with the same subject that are displayed visually as kinda sorta being in the same thread. In those cases, getting the response before the answer isn't unusual, because mail arrive in any which order. > I thought perhaps that the `gnus-sort-gathered-threads-function' > might be the solution here, but so far I have had no success with > it. If I try to do > > (setq gnus-sort-gathered-threads-function '((not gnus-thread-sort-by-da= te))) > > , when the *Summary* buffer opens I get the error message > > sort: Invalid function: ((not gnus-thread-sort-by-date)) > > . > > It almost seems that "a list containing functions and =E2=80=98(not > some-function)=E2=80=99 elements" is not supported here? Yes, that's correct. It just takes a function. > To try to work around this, I tried > > (defun nlj-thread-sort-by-date-descending (h1 h2) > "Sort threads in the opposite order to `gnus-thread-sort-by-date'." > (not (gnus-thread-sort-by-date h1 h2))) > > (setq gnus-sort-gathered-threads-function 'nlj-thread-sort-by-date-desc= ending) What about (defun nlj-thread-sort-by-date-descending (h1 h2) "Sort threads in the opposite order to `gnus-thread-sort-by-date'." (gnus-thread-sort-by-date h2 h1)) ? In any case, I don't think what you're seeing is a bug, so I'm closing this bug report. --=20 (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no