Gnus development mailing list
 help / color / mirror / Atom feed
From: Eric Abrahamsen <eric@ericabrahamsen.net>
To: "Adam Sjøgren" <asjo@koldfront.dk>
Cc: ding@gnus.org
Subject: Re: Args out of range when quitting search buffer with recent Emacs/Gnus
Date: Sun, 13 Sep 2020 12:27:40 -0700	[thread overview]
Message-ID: <87imchscib.fsf@ericabrahamsen.net> (raw)
In-Reply-To: <87imchhcyz.fsf@tullinup.koldfront.dk> ("Adam =?utf-8?Q?Sj?= =?utf-8?Q?=C3=B8gren=22's?= message of "Sun, 13 Sep 2020 18:13:08 +0200")

Adam Sjøgren <asjo@koldfront.dk> writes:

> Andrew writes:
>
>> OK, I had forgotten how nnml works :) I think you are likely right that
>> gnus can't figure out which backend to assign directories in the same
>> nnml tree. I guess the simplest thing to try is to move the archive
>> backend to an orthogonal directory tree.
>
> To start with, I tried just telling notmuch not to index anything in
> ~/Mail/archive.
>
> That way no results in there are ever returned.
>
> Interestingly, I can still get the error, if I search for something that
> generates a lot of hits, but not if I search for the thing that just
> generates two hits!
>
> So G G ejendomsvurderingen RET gives 2 hits, and I can q the search
> results.
>
> But G G USB ID RET gives 94 lines in the search results, and pressing q
> results in:
>
>   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
>
> So I'm guessing the archive theory can be dismissed as the cause.
>
> Backtrace:
>
>   Debugger entered--Lisp error: (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] ...] 999)
>     nnselect-article-group(1000)
>     #f(compiled-function (member) #<bytecode 0x1867d85b70e9665d>)(1000)
>     mapc(#f(compiled-function (member) #<bytecode 0x1867d85b70e9665d>) (1000 999 998 997 996 995 994 993 992 991 990 989 988 987 986 985 984 983 982 981 980 979 978 977 976 975 974 973 972 971 970 969 968 967 966 965 964 963 962 961 960 959 958 957 956 955 954 953 952 951 ...))
>     nnselect-push-info("nnselect:nnselect-87k0wxhd6v.fsf")
>     nnselect-close-group("nnselect-87k0wxhd6v.fsf" "nnselect-ephemeral")
>     gnus-close-group("nnselect:nnselect-87k0wxhd6v.fsf")
>     gnus-summary-exit()
>     funcall-interactively(gnus-summary-exit)
>     call-interactively(gnus-summary-exit nil nil)
>     command-execute(gnus-summary-exit)
>
> There is something funky about those 1000, as you say.

Jumping in here quickly while Andy sorts out his computer...

I think the simplest next step would be to figure out which list of
marks thinks there are 1000 articles in this group. Is it always 1000,
no matter how many search results you get? I imagine we'll eventually
see why that's significant, but I can't think of anything now. My best
guess is that a list of marks that's meant to be local to the summary
buffer is somehow getting set and/or read globally.

Would you run a search that you're confident will trigger the error, and
evaluate this *in that buffer* (ie with "M-:" in the buffer).

(setq length-pairs
      (mapcar (lambda (mark-list)
		(cons mark-list
		      (length (symbol-value mark-list))))
	      (append (mapcar
		       (lambda (type)
			 (intern (format "gnus-newsgroup-%s" (car type))))
		       gnus-article-mark-lists)
		       '(gnus-newsgroup-unreads gnus-newsgroup-unseen))))

And then show us the (expanded) value of `length-pairs'?


  reply	other threads:[~2020-09-13 19:28 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 [this message]
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
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=87imchscib.fsf@ericabrahamsen.net \
    --to=eric@ericabrahamsen.net \
    --cc=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).