Gnus development mailing list
 help / color / mirror / Atom feed
From: Eric Abrahamsen <eric@ericabrahamsen.net>
To: ding@gnus.org
Subject: Re: Args out of range when quitting search buffer with recent Emacs/Gnus
Date: Mon, 14 Sep 2020 13:28:13 -0700	[thread overview]
Message-ID: <87d02oyug2.fsf@ericabrahamsen.net> (raw)
In-Reply-To: <87v9gge481.fsf@tullinup.koldfront.dk>

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

> 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?

Yup, you found it. The code will just have to special-case
`gnus-newsgroup-scored' and ignore the actual score.

Nice work!



  reply	other threads:[~2020-09-14 20:29 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
2020-09-14 20:28                                 ` Eric Abrahamsen [this message]
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=87d02oyug2.fsf@ericabrahamsen.net \
    --to=eric@ericabrahamsen.net \
    --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).