From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Emilia =?UTF-8?Q?Bl=C3=A5sten?= Newsgroups: gmane.emacs.bugs Subject: bug#53755: 27.2; C-u M-x gnus-summary-sort-by-most-recent-number / -date not ordering threads as expected Date: Sat, 05 Feb 2022 01:11:00 +0200 Message-ID: <86o83mcjnf.fsf@iki.fi> References: <87zgn761cj.fsf@md5i.com> <87zgn7il4u.fsf@gmail.com> <87sfsz5ms3.fsf@md5i.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="22859"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (windows-nt) Cc: 53755@debbugs.gnu.org, =?UTF-8?Q?K=C3=A9vin?= Le Gouguec To: Michael Welsh Duggan Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Feb 05 00:13:19 2022 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nG7lX-0005lB-8K for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 05 Feb 2022 00:13:19 +0100 Original-Received: from localhost ([::1]:32850 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nG7lV-0003Dh-B1 for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 04 Feb 2022 18:13:17 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:55226) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nG7kJ-0003CU-5Q for bug-gnu-emacs@gnu.org; Fri, 04 Feb 2022 18:12:03 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:39277) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nG7kH-000583-Qc for bug-gnu-emacs@gnu.org; Fri, 04 Feb 2022 18:12:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nG7kH-0004Oy-L4 for bug-gnu-emacs@gnu.org; Fri, 04 Feb 2022 18:12:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Emilia =?UTF-8?Q?Bl=C3=A5sten?= Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 04 Feb 2022 23:12:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 53755 X-GNU-PR-Package: emacs Original-Received: via spool by 53755-submit@debbugs.gnu.org id=B53755.164401627016854 (code B ref 53755); Fri, 04 Feb 2022 23:12:01 +0000 Original-Received: (at 53755) by debbugs.gnu.org; 4 Feb 2022 23:11:10 +0000 Original-Received: from localhost ([127.0.0.1]:33174 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nG7jR-0004Nm-SD for submit@debbugs.gnu.org; Fri, 04 Feb 2022 18:11:10 -0500 Original-Received: from meesny.iki.fi ([195.140.195.201]:43074) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nG7jN-0004NZ-4H for 53755@debbugs.gnu.org; Fri, 04 Feb 2022 18:11:08 -0500 Original-Received: from DESKTOP-D94EMH3 (91-156-65-45.elisa-laajakaista.fi [91.156.65.45]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: emilia.blasten@iki.fi) by meesny.iki.fi (Postfix) with ESMTPSA id 4D94920061; Sat, 5 Feb 2022 01:11:02 +0200 (EET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=iki.fi; s=meesny; t=1644016262; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=U0ID5Zk+iTrmy1i24tNtCaiqaeY+FY0D363I/CRA2qA=; b=IDbO/IVZn80u3QW8ykcrr/Nu3YxGaR8ZbyjV+Z8xgVvhCBM8fQAovbwwcTULhdBqDcwgBK liPBZKyHAZ9r0TKZ8MK/EMTg1uIiXqyqfN7Tij9IvE8faBE9019GzO6y2KpW2Ot9VFPm/J IyfMR0nv1H+VQ+4OmPtCaim5fKig8bA= In-Reply-To: <87sfsz5ms3.fsf@md5i.com> (Michael Welsh Duggan's message of "Thu, 03 Feb 2022 22:33:00 -0500") ARC-Authentication-Results: i=1; ORIGINATING; auth=pass smtp.auth=emilia.blasten@iki.fi smtp.mailfrom=emilia.blasten@iki.fi ARC-Seal: i=1; s=meesny; d=iki.fi; t=1644016262; a=rsa-sha256; cv=none; b=dvKLgpb8MYsfhiOxu4CNHZ0zKE8ZMwlw/g/1jTAP2p/tl59wzf5yq3aZwkgNpSbAz+Skvt zD61g/bGJd5/1aLPCR8nzbQgB0+gdaQHXJjd9CVz5SCyBo4bcFPoIO24m/PfVQOhEneIXU VubQO5Wo2uf4ZgWzXsEFgApmeWIawyc= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=iki.fi; s=meesny; t=1644016262; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=U0ID5Zk+iTrmy1i24tNtCaiqaeY+FY0D363I/CRA2qA=; b=JB71u+6MFhxwG+f5+JQoWEdLkVMQ7RtNX/iSOAPI9ZFaZY6fAVwgNNxmhHD4owI37xWmzs 9yBnGJZ8vvcItkDyZRsRouBGFEWxEQzmUhXyGjMHxLj/2NrDTRRUmI+jy3d73rSRNmAJq4 GyZb0PR45Q3QWrmPfzh/uGJdyTIEjQQ= X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:226018 Archived-At: Dear all, Thank you for the quick replies. My bug report seems indeed about the same issues as in bugs #18156 and #42334 reported by Michael Welsh Duggan and K=C3=A9vin Le Gouguec earlier. Lars Ingebrigtsen writes: > It's hard to say since the display is so non-standard, but > is the issue that the gathered threads aren't sorted as expected? If > so, see `gnus-sort-gathered-threads-function'. Arash Esbati writes: > My apologies if I didn't understand your requirements correctly, but I > think you're looking for `gnus-subthread-sort-functions'. Try > > (setq (gnus-thread-sort-functions > '(gnus-thread-sort-by-most-recent-number)) > (gnus-subthread-sort-functions > '(gnus-thread-sort-by-date))) Thank you. I will look into these, and I believe they can help me solve problem 2) in my original email. Michael Welsh Duggan writes: > This may be related to Bug #18156. > > https://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D18156 > > I have patched my local gnus to allow sorting threads by newest message. K=C3=A9vin Le Gouguec writes: > Michael Welsh Duggan writes: >> 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. > > I think I filed more or less the same bug (bug#42334), with more or less > the same conclusion? > > Lars suggested a solution before wontfixing it, but I never got around > to implementing it. How does your local patch work? Michael Welsh Duggan writes: > I run with the included patch. In the group for which I care about > this, I set the following group parameter: > > (gnus-thread-sort-functions > 'md5i-thread-sort-by-most-recent-date-reverse) > > where `md5i-thread-sort-by-most-recent-date-reverse' is defined thusly: > > (defun md5i-thread-sort-by-most-recent-date-reverse (h1 h2) > (<=3D (gnus-thread-latest-date h1) (gnus-thread-latest-date h2))) This seems to be it! I have not given a try to the patch yet, but I am quite certain this is the same issue. K=C3=A9vin's description (bug #42334) matches my issue very well. Since this part of the code is very old, I do understand that you would hesitate changing it, in which case this can be closed from my part. I guess I didn't find these because I was looking only at unarchived issues in debbugs.gnu.org. Best regards, Emilia