Gnus development mailing list
 help / color / mirror / Atom feed
From: "Adam Sjøgren" <asjo@koldfront.dk>
To: ding@gnus.org
Subject: Re: Args out of range when quitting search buffer with recent Emacs/Gnus
Date: Mon, 14 Sep 2020 18:02:38 +0200	[thread overview]
Message-ID: <87v9gge481.fsf@tullinup.koldfront.dk> (raw)
In-Reply-To: <877dsx2q7h.fsf@ust.hk>

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 112 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:debian-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:cron" 18792 0] ["nnml:cron" 18990 0] ["nnml:cron" 19218 0] ["nnml:cron" 19423 0] ["nnml:cron" 19634 0] ["nnml:cron" 19812 0] ["nnml:cron" 19816 0] ["nnml: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:cron" 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] ["nnml:cron" 21054 0] ["nnml:cron" 21870 0] ["nnml:cron" 21921 0] ["nnml:cron" 21964 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:cron" 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] ["nnml:normal" 10338 0] ["nnml:normal" 13286 0] ["nnml:normal" 13337 0] ["nnml:normal" 13375 0] ["nnml:normal" 16258 0] ["nnml:normal" 16982 0] ["nnml:normal" 17224 0] ["nnml:normal" 17225 0] ["nnml:normal" 17557 0] ["nnml:normal" 17560 0] ["nnml:normal" 17800 0] ["nnml:normal" 17801 0] ["nnml:normal" 18596 0] ["nnml:normal" 18855 0] ["nnml:normal" 18874 0] ["nnml:normal" 18903 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] ["nnml:normal" 22021 0] ["nnml:normal" 22097 0] ["nnml:normal" 22270 0] ["nnml:normal" 22622 0] ["nnml:normal" 22623 0] ["nnml:normal" 23290 0] ["nnml:normal" 25951 0] ["nnml:normal" 25952 0] ["nnml:normal" 25954 0] ["nnml:normal" 26831 0] ["nnml:normal" 29020 0] ["nnml:normal" 29255 0] ["nnml:normal" 29256 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= 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

-- 
 "More than anything, I won't try"                          Adam Sjøgren
                                                       asjo@koldfront.dk



  reply	other threads:[~2020-09-14 16:03 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-09-12 18:53 Adam Sjøgren
2020-09-13 12:43 ` Andrew Cohen
2020-09-13 13:11   ` Adam Sjøgren
2020-09-13 13:53     ` Andrew Cohen
2020-09-13 14:06       ` Adam Sjøgren
2020-09-13 14:20         ` Andrew Cohen
2020-09-13 14:27           ` Adam Sjøgren
2020-09-13 15:51             ` Andrew Cohen
2020-09-13 16:13               ` Adam Sjøgren
2020-09-13 19:27                 ` Eric Abrahamsen
2020-09-13 19:45                   ` Adam Sjøgren
2020-09-13 20:26                     ` Eric Abrahamsen
2020-09-13 20:46                       ` Adam Sjøgren
2020-09-13 21:01                         ` Eric Abrahamsen
2020-09-13 23:30                           ` Andrew Cohen
2020-09-13 23:48                             ` Andrew Cohen
2020-09-14 16:02                               ` Adam Sjøgren [this message]
2020-09-14 20:28                                 ` Eric Abrahamsen
2020-09-14 23:27                                   ` Andrew Cohen
2020-09-14 15:47                             ` Adam Sjøgren
2020-09-13 16:48         ` Eric Abrahamsen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87v9gge481.fsf@tullinup.koldfront.dk \
    --to=asjo@koldfront.dk \
    --cc=ding@gnus.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).