From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-2.4 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,RCVD_IN_DNSWL_MED autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 32156 invoked from network); 14 Sep 2020 16:03:06 -0000 Received: from lists1.math.uh.edu (129.7.128.208) by inbox.vuxu.org with ESMTPUTF8; 14 Sep 2020 16:03:06 -0000 Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by lists1.math.uh.edu with smtp (Exim 4.94) (envelope-from ) id 1kHqwS-00E2U4-LR; Mon, 14 Sep 2020 11:02:56 -0500 Received: from mx2.math.uh.edu ([129.7.128.33]) by lists1.math.uh.edu with esmtps (TLS1.3) tls TLS_AES_256_GCM_SHA384 (Exim 4.94) (envelope-from ) id 1kHqwO-00E2SC-3e for ding@lists.math.uh.edu; Mon, 14 Sep 2020 11:02:52 -0500 Received: from quimby.gnus.org ([95.216.78.240]) by mx2.math.uh.edu with esmtps (TLS1.3) tls TLS_AES_256_GCM_SHA384 (Exim 4.94) (envelope-from ) id 1kHqwM-001mbo-7T for ding@lists.math.uh.edu; Mon, 14 Sep 2020 11:02:51 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Transfer-Encoding:Content-Type:Mime-Version:References :Message-ID:Date:Subject:From:To:Sender:Reply-To:Cc:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=O77lMDS9VS1Ve9EnYBNjObRf1U1XOMe6Ov4jPl5Qdic=; b=lt84QOtPMMf38OzDE9a+WMo0p6 UBaoUR7uoDHUrw8CRBEuGqXl25VRwnyrak1viPId0iimvTyFG7EqchyvC4L6JgyWtfV6bh+nAgVbn wKGVjXwJKVb9SRzSQfsYMBT71fNkNug+qsQInGdQHQUM+R8KrU4tj+ZOfZKjYzeVQn5U=; Received: from static.214.254.202.116.clients.your-server.de ([116.202.254.214] helo=ciao.gmane.io) by quimby with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kHqwF-0003Fh-SM for ding@gnus.org; Mon, 14 Sep 2020 18:02:46 +0200 Received: from list by ciao.gmane.io with local (Exim 4.92) (envelope-from ) id 1kHqwF-00031r-8x for ding@gnus.org; Mon, 14 Sep 2020 18:02:43 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: ding@gnus.org From: =?utf-8?Q?Adam_Sj=C3=B8gren?= Subject: Re: Args out of range when quitting search buffer with recent Emacs/Gnus Date: Mon, 14 Sep 2020 18:02:38 +0200 Organization: koldfront - analysis & revolution, Copenhagen, Denmark Message-ID: <87v9gge481.fsf@tullinup.koldfront.dk> References: <87a6xug73j.fsf@tullinup.koldfront.dk> <87ft7lq23s.fsf@ust.hk> <871rj5es8v.fsf@tullinup.koldfront.dk> <87tuw1oka8.fsf@ust.hk> <87r1r5db4n.fsf@tullinup.koldfront.dk> <87o8m9oj1f.fsf@ust.hk> <874ko169b8.fsf@tullinup.koldfront.dk> <87k0wxoeu0.fsf@ust.hk> <87imchhcyz.fsf@tullinup.koldfront.dk> <87imchscib.fsf@ericabrahamsen.net> <87wo0xe9zp.fsf@tullinup.koldfront.dk> <87een5s9st.fsf@ericabrahamsen.net> <87mu1te75x.fsf@tullinup.koldfront.dk> <87y2ldqtl5.fsf@ericabrahamsen.net> <87d02p2r1y.fsf@ust.hk> <877dsx2q7h.fsf@ust.hk> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cancel-Lock: sha1:alNlVlAaDW9l3Ezqa9JnSivWYS0= OpenPGP: id=476630590A231909B0A0961A49D0746121BDE416; url=https://asjo.koldfront.dk/gpg.asc Mail-Follow-Up-To: never X-Face: )qY&CseJ?.:=8F#^~GcSA?F=9eu'{KAFfL1C3/A&:nE?PW\i65"ba0NS)97,Q(^@xk}n4Ou rPuR#V8I(J_@~H($[ym:`K_+]*kjvW>xH5jbgLBVFGXY:(#4P>zVBklLbdL&XxL\M)%T}3S/IS9lMJ ^St'=VZBR Precedence: bulk Andrew writes: > And after this, you could try stepping into the function > 'nnselect-push-info using edebug. Identifying which line in this > function leads to the error would narrow it down. So I go to nnselect-push-info, run M-x edebug-defun at the beginning of it, and then press q in the *Summary nnselect...* buffer. Let's see what happens. Ok, so it's iterating around these lines: (pcase-dolist (`(,mark . ,type) gnus-article-mark-lists) (when (setq type-list (symbol-value (intern (format "gnus-newsgroup-%s" mark)))) (push (cons type (numbers-by-group (gnus-uncompress-range type-list))) mark-list))) and when it hits "score", a list like this appears: Result: gnus-newsgroup-scored Result: ((95 . 1000) (93 . 1000) (92 . 1000) (91 . 1000) (80 . 1000) (60 = . 1000) (59 . 1000) (5 . 2000) (6 . 1000)) Result: ((95 . 1000) (93 . 1000) (92 . 1000) (91 . 1000) (80 . 1000) (60 = . 1000) (59 . 1000) (5 . 2000) (6 . 1000)) [3 times] Result: score [3 times] Result: ((95 . 1000) (93 . 1000) (92 . 1000) (91 . 1000) (80 . 1000) (60 = . 1000) (59 . 1000) (5 . 2000) (6 . 1000)) That looks funky, n'est pas? And then when the range is uncompressed, the error appears: Result: (95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 1= 12 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 = 131 132 133 134 135 136 137 138 139 140 141 142 143 144 ...) Args out of range: [["nnml:cvs" 1664 0] ["nnml:cvs" 1667 0] ["nnml:rt2400= -devel" 74 0] ["nnml:rt2400-devel" 75 0] ["nnml:never-sent" 43 0] ["nnml:de= bian-bts" 225 0] ["nnml:debian-bts" 228 0] ["nnml:leif" 2036 0] ["nnml:cron= " 6244 0] ["nnml:cron" 17494 0] ["nnml:cron" 17793 0] ["nnml:cron" 18110 0]= ["nnml:cron" 18294 0] ["nnml:cron" 18488 0] ["nnml:cron" 18638 0] ["nnml:c= ron" 18792 0] ["nnml:cron" 18990 0] ["nnml:cron" 19218 0] ["nnml:cron" 1942= 3 0] ["nnml:cron" 19634 0] ["nnml:cron" 19812 0] ["nnml:cron" 19816 0] ["nn= ml:cron" 19817 0] ["nnml:cron" 19828 0] ["nnml:cron" 19829 0] ["nnml:cron" = 19856 0] ["nnml:cron" 19933 0] ["nnml:cron" 19939 0] ["nnml:cron" 19943 0] = ["nnml:cron" 19969 0] ["nnml:cron" 19977 0] ["nnml:cron" 20119 0] ["nnml:cr= on" 20268 0] ["nnml:cron" 20392 0] ["nnml:cron" 20476 0] ["nnml:cron" 20569= 0] ["nnml:cron" 20671 0] ["nnml:cron" 20785 0] ["nnml:cron" 20978 0] ["nnm= l:cron" 21054 0] ["nnml:cron" 21870 0] ["nnml:cron" 21921 0] ["nnml:cron" 2= 1964 0] ["nnml:cron" 22084 0] ["nnml:cron" 22305 0] ["nnml:cron" 22353 0] [= "nnml:cron" 22425 0] ["nnml:cron" 23190 0] ["nnml:cron" 23247 0] ["nnml:cro= n" 23299 0] ["nnml:cron" 23333 0] ["nnml:cron" 25469 0] ["nnml:cron" 25471 = 0] ["nnml:cron" 35356 0] ["nnml:cron" 35406 0] ["nnml:normal" 10232 0] ["nn= ml:normal" 10338 0] ["nnml:normal" 13286 0] ["nnml:normal" 13337 0] ["nnml:= normal" 13375 0] ["nnml:normal" 16258 0] ["nnml:normal" 16982 0] ["nnml:nor= mal" 17224 0] ["nnml:normal" 17225 0] ["nnml:normal" 17557 0] ["nnml:normal= " 17560 0] ["nnml:normal" 17800 0] ["nnml:normal" 17801 0] ["nnml:normal" 1= 8596 0] ["nnml:normal" 18855 0] ["nnml:normal" 18874 0] ["nnml:normal" 1890= 3 0] ["nnml:normal" 18904 0] ["nnml:normal" 19652 0] ["nnml:normal" 19780 0= ] ["nnml:normal" 19797 0] ["nnml:normal" 19832 0] ["nnml:normal" 21000 0] [= "nnml:normal" 21006 0] ["nnml:normal" 21057 0] ["nnml:normal" 21272 0] ["nn= ml:normal" 22021 0] ["nnml:normal" 22097 0] ["nnml:normal" 22270 0] ["nnml:= normal" 22622 0] ["nnml:normal" 22623 0] ["nnml:normal" 23290 0] ["nnml:nor= mal" 25951 0] ["nnml:normal" 25952 0] ["nnml:normal" 25954 0] ["nnml:normal= " 26831 0] ["nnml:normal" 29020 0] ["nnml:normal" 29255 0] ["nnml:normal" 2= 9256 0] ["nnml:normal" 29643 0]], 999 edebug-signal: Args out of range: [["nnml:cvs" 1664 0] ["nnml:cvs" 1667 0= ] ["nnml:rt2400-devel" 74 0] ["nnml:rt2400-devel" 75 0] ["nnml:never-sent" = 43 0] ["nnml:debian-bts" 225 0] ["nnml:debian-bts" 228 0] ["nnml:leif" 2036= 0] ["nnml:cron" 6244 0] ["nnml:cron" 17494 0] ...], 999 Does that ring any bells? I tried this patch, just as an experiment: diff --git a/lisp/gnus/nnselect.el b/lisp/gnus/nnselect.el index 94dd93b354..64fd40b8e2 100644 --- a/lisp/gnus/nnselect.el +++ b/lisp/gnus/nnselect.el @@ -773,11 +773,12 @@ nnselect-push-info (gnus-newsgroup-active nil) mark-list type-list) (pcase-dolist (`(,mark . ,type) gnus-article-mark-lists) - (when (setq type-list - (symbol-value (intern (format "gnus-newsgroup-%s" mark)))) - (push (cons type - (numbers-by-group - (gnus-uncompress-range type-list))) mark-list))) + (when (not (string=3D mark "scored")) + (when (setq type-list + (symbol-value (intern (format "gnus-newsgroup-%s" mark)))) + (push (cons type + (numbers-by-group + (gnus-uncompress-range type-list))) mark-list)))) (pcase-dolist (`(,artgroup . ,artlist) (numbers-by-group gnus-newsgroup-articles)) (let* ((group-info (gnus-get-info artgroup)) and then I can quit the group. Best regards, Adam --=20 "More than anything, I won't try" Adam Sj=C3=B8gr= en asjo@koldfront.dk