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,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 10162 invoked from network); 26 Jun 2023 00:59:29 -0000 Received: from mx1.math.uh.edu (129.7.128.32) by inbox.vuxu.org with ESMTPUTF8; 26 Jun 2023 00:59:29 -0000 Received: from lists1.math.uh.edu ([129.7.128.208]) by mx1.math.uh.edu with esmtps (TLS1.3) tls TLS_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1qDaZj-002KdZ-39 for ml@inbox.vuxu.org; Sun, 25 Jun 2023 19:59:28 -0500 Received: from lists1.math.uh.edu ([127.0.0.1] helo=lists.math.uh.edu) by lists1.math.uh.edu with smtp (Exim 4.96) (envelope-from ) id 1qDaZj-0026uc-0I for ml@inbox.vuxu.org; Sun, 25 Jun 2023 19:59:27 -0500 Received: from mx2.math.uh.edu ([129.7.128.33]) by lists1.math.uh.edu with esmtp (Exim 4.96) (envelope-from ) id 1qDaZh-0026uW-2L for ding@lists.math.uh.edu; Sun, 25 Jun 2023 19:59:25 -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.96) (envelope-from ) id 1qDaZg-00H0dJ-0H for ding@lists.math.uh.edu; Sun, 25 Jun 2023 19:59:25 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:Mime-Version:References:Message-ID:Date:Subject: From:To:Sender:Reply-To:Cc:Content-Transfer-Encoding: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=N1688TVWxLEEK3K50rVl5G+T5ri45CwE12K/YnjI2nQ=; b=r/5PZYfSSztQoJ9tCYCUWUR8Ac 4E1p6LDsnCGlDDv2Q8UdWvu41Tpe/j+/e4ZG/MpinFXVwBbF1AA5mo6kZ1R7R3KbiIZoxaw0unoYR rAbSKGqNcdHnH73Jv/CMmNRUH33pJ0bzG73Et8fPkLhw0oxXO18W1QLYhXJeLhYtnfIk=; Received: from ciao.gmane.io ([116.202.254.214]) by quimby.gnus.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1qDaZY-00005o-Ka for ding@gnus.org; Mon, 26 Jun 2023 02:59:19 +0200 Received: from list by ciao.gmane.io with local (Exim 4.92) (envelope-from ) id 1qDaZW-0008ws-3n for ding@gnus.org; Mon, 26 Jun 2023 02:59:14 +0200 X-Injected-Via-Gmane: http://gmane.org/ Mail-Followup-To: ding@gnus.org To: ding@gnus.org From: Dan Christensen Subject: list level not respected by gnus-group-get-new-news [was: Emacs 28.2 gnus: nntp read marks lost after going offline and online again] Date: Sun, 25 Jun 2023 20:58:53 -0400 Message-ID: <87r0pzujhu.fsf_-_@uwo.ca> References: <871qi7ld1z.fsf@dod.no> <87sfanju2y.fsf@dod.no> <87edm7jqj7.fsf@dod.no> <877cryhr7n.fsf@dod.no> <87352lj4hx.fsf@dod.no> <87fs6ltwz7.fsf@ericabrahamsen.net> <87y1kc8xgw.fsf@dod.no> <87ttv0h9qm.fsf@dod.no> <87352keg3b.fsf@dod.no> <87zg4sr1d6.fsf@dod.no> <87v8fgr0vb.fsf@dod.no> <871qi338pc.fsf@uwo.ca> <87pm5lv23m.fsf@dod.no> <87352fy8bt.fsf@uwo.ca> <871qhzboe5.fsf@dod.no> Mime-Version: 1.0 Content-Type: text/plain User-Agent: Gnus/5.13 (Gnus v5.13) Cancel-Lock: sha1:s+3u+npuUtwFXWW41aI6yO4HGAQ= Mail-Copies-To: never List-ID: Precedence: bulk On Jun 25, 2023, Steinar Bang wrote: >> So are you saying that `2 g' works fine for you, but the code you >> posted does not work? That seems really strange. > > No. I was trying to say that I observed the exact same behaviour as you did. > > Both the function I posted and '2 g' had the same result: groups on > levels greater than 2 disappeared. > > But '3 g' made them reappear (at least the ones on level 3). In the first message you said that the groups lost their marks, so I was still under the impression that that was the issue. If the groups are just not being *displayed*, then `3 l' will show the groups on levels <= 3. Indeed, digging around shows this commit from two years ago: https://github.com/emacs-mirror/emacs/commit/7f9ca3b2f4f1a9800d7557f64e25bb3ee5059cba where lines 4208-4209 are changed from (gnus-group-list-groups (and (numberp arg) (max (car gnus-group-list-mode) arg))) to (gnus-group-list-groups (and (numberp arg) arg)) So the current list level is not taken into account any more. I also find this a bit annoying, to tell you the truth. Even more, the new code goes on to make this permanent: (when gnus-group-use-permanent-levels (setq gnus-group-use-permanent-levels (gnus-group-default-level arg))))) Do others think it makes sense to hide groups currently being displayed just because I refreshed groups at a lower level? (I've changed the subject to reflect what's really going on here.) Dan