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 12594 invoked from network); 12 Feb 2022 20:24:53 -0000 Received: from mx1.math.uh.edu (129.7.128.32) by inbox.vuxu.org with ESMTPUTF8; 12 Feb 2022 20:24:53 -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.94.2) (envelope-from ) id 1nIywt-00EJt6-3a for ml@inbox.vuxu.org; Sat, 12 Feb 2022 14:24:51 -0600 Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by lists1.math.uh.edu with smtp (Exim 4.94.2) (envelope-from ) id 1nIyws-004GB3-In for ml@inbox.vuxu.org; Sat, 12 Feb 2022 14:24:50 -0600 Received: from mx2.math.uh.edu ([129.7.128.33]) by lists1.math.uh.edu with esmtp (Exim 4.94.2) (envelope-from ) id 1nIywq-004GAu-7S for ding@lists.math.uh.edu; Sat, 12 Feb 2022 14:24:48 -0600 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.94.2) (envelope-from ) id 1nIywn-004Grb-QH for ding@lists.math.uh.edu; Sat, 12 Feb 2022 14:24:47 -0600 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=1RweZ4ui35dMvEnfilJnLsRSc4mMi2DQYU4xouB/j5U=; b=t/vyMnJxpiCkHdhD1ME4HB2xwD gMJKhNc+FokqB7qb+ignmPcRB0GaTafykG2AUsPnEBpqqHcb14/S9SdBSrLjvMmsbpXey8+hZBdd4 1iur1qLjn+EJqGudDGpb9C/HuH69ehNX5HmBAqeZGuK05HX/WZ4S0kWXfZzMS9wENQ7w=; 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 1nIywf-0002tZ-Rk for ding@gnus.org; Sat, 12 Feb 2022 21:24:40 +0100 Received: from list by ciao.gmane.io with local (Exim 4.92) (envelope-from ) id 1nIywc-0008Ii-DB for ding@gnus.org; Sat, 12 Feb 2022 21:24:34 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: ding@gnus.org From: Eric Abrahamsen Subject: Re: auto open servers? Date: Sat, 12 Feb 2022 12:24:26 -0800 Message-ID: <87wnhz96kl.fsf@ericabrahamsen.net> References: <8735lgsgmf.fsf@zoho.eu> <8735ldcysx.fsf@eps142.cdf.udc.es> <87tudttqtm.fsf@zoho.eu> <87o841tpkz.fsf@zoho.eu> <87v8y98l7t.fsf@igel.home> <87o83zbis4.fsf@zoho.eu> <87mtiw2gsi.fsf@local.lan> Mime-Version: 1.0 Content-Type: text/plain User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) Cancel-Lock: sha1:P4CmMcKQ3WSg6lqCqxoe6Dl/Xsc= List-ID: Precedence: bulk hput writes: > Emanuel Berg writes: > >> Now it looks like this: >> >> (defun gnus-open-servers () >> (interactive) >> (unless (get-buffer gnus-server-buffer) >> (gnus-group-enter-server-mode) ) >> (with-current-buffer gnus-server-buffer >> (gnus-server-open-all-servers) >> (bury-buffer) ) >> (message "done") ) >> > > [...] > > Is that working for you? I see no improvement running M-x > > gnus-open-servers > > Still get the busy sign for ages or maybe forever. > > Maybe I misunderstand this thread but I often see in server mode that > server shows open but I get no action trying to send post or get new > news, until I close server and then reopen. > > I can load a snippet of code posted here a while back by Eric A: > Message-ID: <87wo0a5407.fsf@ericabrahamsen.net> > > (dolist (elem gnus-opened-servers) > (gnus-close-server (car elem))) > > I load it in what is no doubt about the most primitive possible way by > M-x load-file and loading a file containing erics above code. > > That does get some action... but even that, lately has been taking a while > to goad news.gmane.io into action > > Is it possible you can post something that combines both code snippets? You can just put my code inside Emanuel's code: (defun gnus-reopen-servers () (interactive) (unless (get-buffer gnus-server-buffer) (gnus-group-enter-server-mode)) (dolist (elem gnus-opened-servers) (gnus-close-server (car elem))) (with-current-buffer gnus-server-buffer (gnus-server-open-all-servers))) Then you'll want to either attach that to a hook, or put it on a timer, or bind it to a key... or some combination of those.