From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Igor Wojnicki Newsgroups: gmane.emacs.bugs Subject: bug#43495: Error when sorting threads in Gnus Date: Sat, 19 Sep 2020 18:43:31 +0200 Message-ID: <00135c65-0f41-3d1f-0e65-a295efd14785@gradis.pl> References: <87h7rv0x60.fsf@rabbit> <87o8m1q0mb.fsf@gnus.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="10365"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 Cc: 43495@debbugs.gnu.org To: Lars Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Sep 19 18:57:29 2020 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 1kJgAy-0002bZ-Mz for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 19 Sep 2020 18:57:28 +0200 Original-Received: from localhost ([::1]:51514 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kJgAx-0008Os-Pa for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 19 Sep 2020 12:57:27 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:59026) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kJfxy-00042J-1p for bug-gnu-emacs@gnu.org; Sat, 19 Sep 2020 12:44:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:36402) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kJfxx-0003pW-NL for bug-gnu-emacs@gnu.org; Sat, 19 Sep 2020 12:44:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kJfxx-0000di-LR; Sat, 19 Sep 2020 12:44:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Igor Wojnicki Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org, bugs@gnus.org Resent-Date: Sat, 19 Sep 2020 16:44:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 43495 X-GNU-PR-Package: emacs,gnus Original-Received: via spool by 43495-submit@debbugs.gnu.org id=B43495.16005338202423 (code B ref 43495); Sat, 19 Sep 2020 16:44:01 +0000 Original-Received: (at 43495) by debbugs.gnu.org; 19 Sep 2020 16:43:40 +0000 Original-Received: from localhost ([127.0.0.1]:47947 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kJfxb-0000d1-RS for submit@debbugs.gnu.org; Sat, 19 Sep 2020 12:43:40 -0400 Original-Received: from cl3.netmark.pl ([128.204.218.69]:41805) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kJfxa-0000cn-J4 for 43495@debbugs.gnu.org; Sat, 19 Sep 2020 12:43:39 -0400 Original-Received: from [185.70.183.9] (port=46588 helo=[192.168.15.2]) by cl3.netmark.pl with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.93) (envelope-from ) id 1kJfxT-001dwC-IY; Sat, 19 Sep 2020 18:43:31 +0200 In-Reply-To: Content-Language: pl-PL X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - cl3.netmark.pl X-AntiAbuse: Original Domain - debbugs.gnu.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - gradis.pl X-Get-Message-Sender-Via: cl3.netmark.pl: authenticated_id: igor.wojnicki@gradis.pl X-Authenticated-Sender: cl3.netmark.pl: igor.wojnicki@gradis.pl 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:188412 Archived-At: And I think it should be rather: (setq gnus-thread-sort-functions '((not gnus-thread-sort-by-most-recent-date))) which makes the error go away :) On 9/19/20 6:34 PM, Igor Wojnicki wrote: > I think I found what caused the error. I had sorting defined as: > (setq gnus-thread-sort-functions >  '(not gnus-thread-sort-by-most-recent-date)) > > If I comment it out the error goes away. > > > On 9/19/20 4:53 PM, Lars Ingebrigtsen wrote: >> Igor Wojnicki writes: >> >>> If I try to open an larger imap group (a few thousand messages both >>> read and unread) Gnus gives a warning: Wrong number of arguments: #, 2 >>> And the Summary window is empty or it contains only some of the >>> messages. >> >> [...] >> >>> Debugger entered--Lisp error: (wrong-number-of-arguments # >>> 2) >>>    not(([26311 "GitLab email verification request" "GitLab >>> " #("Fri, 10 Jul 2020 02:32:05 +0000" 0 1 >>> (gnus-time (24327 54053))) >> >> [...] >> >>>    gnus-summary-prepare() >> >> It looks like the backtrace has to come from something in either >> gnus-thread-sort-functions, gnus-article-sort-functions or >> gnus-sort-gathered-threads-function.  What's the value of those three >> variables? >> > -- dr inż. Igor Wojnicki, dyrektor ds. technologii, GRADIS Sp. z o.o.