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.1 required=5.0 tests=DKIM_INVALID,DKIM_SIGNED, RCVD_IN_DNSWL_MED autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 28420 invoked from network); 14 Sep 2020 20:29:25 -0000 Received: from lists1.math.uh.edu (129.7.128.208) by inbox.vuxu.org with ESMTPUTF8; 14 Sep 2020 20:29:25 -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 1kHv5W-00E4pJ-Hq; Mon, 14 Sep 2020 15:28:34 -0500 Received: from mx1.math.uh.edu ([129.7.128.32]) by lists1.math.uh.edu with esmtps (TLS1.3) tls TLS_AES_256_GCM_SHA384 (Exim 4.94) (envelope-from ) id 1kHv5S-00E4nV-Sz for ding@lists.math.uh.edu; Mon, 14 Sep 2020 15:28:30 -0500 Received: from quimby.gnus.org ([95.216.78.240]) by mx1.math.uh.edu with esmtps (TLS1.3) tls TLS_AES_256_GCM_SHA384 (Exim 4.94) (envelope-from ) id 1kHv5Q-00Cs8a-Ot for ding@lists.math.uh.edu; Mon, 14 Sep 2020 15:28:30 -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=VjDaSDpsjNSJHgzkOSdKM32WH34gRdFLuCZdiMpHkCs=; b=HC0j95pk/MAiJVYZnBAGpcoD3G TNXPJPHkDjJGZWnWNsDr4JoKENXPCtOu+vzpVd/te+Dohu8D10FoY0r26CKP9hr+uN9Z6+LaLYDnJ Cbp2cfSAWSF+jDXoLb+YxwBNhzLbPmKNP0u1wx+hqr+13Gcu8drQMk6+l0DvygCpV7MI=; 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 1kHv5I-0006Io-QO for ding@gnus.org; Mon, 14 Sep 2020 22:28:23 +0200 Received: from list by ciao.gmane.io with local (Exim 4.92) (envelope-from ) id 1kHv5G-0003OC-Vz for ding@gnus.org; Mon, 14 Sep 2020 22:28:18 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: ding@gnus.org From: Eric Abrahamsen Subject: Re: Args out of range when quitting search buffer with recent Emacs/Gnus Date: Mon, 14 Sep 2020 13:28:13 -0700 Message-ID: <87d02oyug2.fsf@ericabrahamsen.net> 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> <87v9gge481.fsf@tullinup.koldfront.dk> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cancel-Lock: sha1:CkRD7zIMsTIIIdFaEOKMWx9UKIw= List-ID: Precedence: bulk Adam Sjøgren 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!