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=0.2 required=5.0 tests=DKIM_INVALID,DKIM_SIGNED, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL, T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.4 Received: (qmail 32712 invoked from network); 23 Jun 2023 20:55:54 -0000 Received: from mx1.math.uh.edu (129.7.128.32) by inbox.vuxu.org with ESMTPUTF8; 23 Jun 2023 20:55:54 -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 1qCnot-000qzW-37 for ml@inbox.vuxu.org; Fri, 23 Jun 2023 15:55:51 -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 1qCnos-0022Ub-39 for ml@inbox.vuxu.org; Fri, 23 Jun 2023 15:55:51 -0500 Received: from mx1.math.uh.edu ([129.7.128.32]) by lists1.math.uh.edu with esmtp (Exim 4.96) (envelope-from ) id 1qCKkG-001wuw-03 for ding@lists.math.uh.edu; Thu, 22 Jun 2023 08:53:08 -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.96) (envelope-from ) id 1qCKkB-00HYDh-1L for ding@lists.math.uh.edu; Thu, 22 Jun 2023 08:53:07 -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=D8DykFVz81GSy16+2HsIpidFhDYBvmsbHLjIm0lSv6Q=; b=UFg8rnNgvHKMtyKT/p9xHnfpd8 8DEeZTGw/ibovwuprDO0fGDskpyZcL1MevjZfKbvqICNOVdnDxDdzFPPrLNegIRYImzE/Ngxkvf73 StqqzfTRZUOxryJzt3OZm8Z0vG337gSr3/aawcL24IL+kXIVUDwe05HKx49xC+9SCoqM=; 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 1qCKk3-0007gr-Ie for ding@gnus.org; Thu, 22 Jun 2023 15:52:58 +0200 Received: from list by ciao.gmane.io with local (Exim 4.92) (envelope-from ) id 1qCKk1-0000zP-Sg for ding@gnus.org; Thu, 22 Jun 2023 15:52:53 +0200 X-Injected-Via-Gmane: http://gmane.org/ Mail-Followup-To: ding@gnus.org To: ding@gnus.org From: Dan Christensen Subject: Re: Emacs 28.2 gnus: nntp read marks lost after going offline and online again Date: Thu, 22 Jun 2023 09:52:47 -0400 Message-ID: <871qi338pc.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> Mime-Version: 1.0 Content-Type: text/plain User-Agent: Gnus/5.13 (Gnus v5.13) Cancel-Lock: sha1:wpg49ag4AQOnRqrH5krYZAhy79M= Mail-Copies-To: never List-ID: Precedence: bulk On Jun 21, 2023, Steinar Bang wrote: >> ;; Automatically fetch news and mail every 15 minutes when idle >> (defun sb-gnus-demon-scan-imap () >> (let ((win (current-window-configuration))) >> (unwind-protect >> (save-window-excursion >> (save-excursion >> (when (gnus-alive-p) >> (save-excursion >> (set-buffer gnus-group-buffer) >> (gnus-group-get-new-news 2))))) >> (set-window-configuration win)))) > > The culprit was my May 26 2003 function above. > > I ran sb-gnus-demon-scan-imap by putting > (sb-gnus-demon-scan-imap) > in the minibuffer and typing Ctrl-J. > > And the nntp groups and read marks went away. I can't see why that function would cause problems. Isn't it essentially the same as doing `2 g' in the *Group* buffer? When I do that, my groups at levels greater than 2 are not shown any more, but `3 l' redisplays them, and none of the information is lost. Moreover, I just checked, and it turns out that I have almost exactly the same function in my config, being run by the demon, and it doesn't cause me any trouble. I'm using git emacs/Gnus. Dan