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=-3.3 required=5.0 tests=MAILING_LIST_MULTI, RCVD_IN_DNSWL_MED,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 21456 invoked from network); 16 Jan 2022 16:03:06 -0000 Received: from lists.gnu.org (209.51.188.17) by inbox.vuxu.org with ESMTPUTF8; 16 Jan 2022 16:03:06 -0000 Received: from localhost ([::1]:53630 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1n97zk-0000Oa-Ek for ml@inbox.vuxu.org; Sun, 16 Jan 2022 11:03:04 -0500 Received: from eggs.gnu.org ([209.51.188.92]:48382) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n97zh-0000OQ-5g for info-gnus-english@gnu.org; Sun, 16 Jan 2022 11:03:01 -0500 Received: from ciao.gmane.io ([116.202.254.214]:47544) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n97zf-0001iq-Hv for info-gnus-english@gnu.org; Sun, 16 Jan 2022 11:03:00 -0500 Received: from list by ciao.gmane.io with local (Exim 4.92) (envelope-from ) id 1n97zd-0002ne-7X for info-gnus-english@gnu.org; Sun, 16 Jan 2022 17:02:57 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: info-gnus-english@gnu.org Subject: Re: Where in gnus manual is info about timers Date: Sun, 16 Jan 2022 11:02:47 -0500 Organization: Still searching... Message-ID: <878rvfwtw8.fsf@local.lan> References: <87wnj0wzr5.fsf@local.lan> <87tue4ogm9.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) Cancel-Lock: sha1:LwPnO4wqliKBtS0eOBHT63mwjaU= Received-SPF: pass client-ip=116.202.254.214; envelope-from=gegu-info-gnus-english@m.gmane-mx.org; helo=ciao.gmane.io X-Spam_score_int: -16 X-Spam_score: -1.7 X-Spam_bar: - X-Spam_report: (-1.7 / 5.0 requ) BAYES_00=-1.9, HEADER_FROM_DIFFERENT_DOMAINS=0.249, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: info-gnus-english@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Announcements and discussions for GNUS, the GNU Emacs Usenet newsreader \(in English\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: info-gnus-english-bounces+ml=inbox.vuxu.org@gnu.org Sender: "info-gnus-english" Reply-to: hput From: hput via "Announcements and discussions for GNUS, the GNU Emacs Usenet newsreader \(in English\)" Bodertz writes: > You might be looking for gnus-demon. Adam Sjøgren writes: [...] > Are you thinking of daemons, that can be used to do stuff when Emacs is > inactive? > > · https://www.gnus.org/manual/gnus_119.html#Daemons > [...] No wonder I wasn't finding it using `timer' to search . . . Ok, now you've steered me to Lars' description... but being an elisp ignoramus of long standing ... I'm drawing blanks about how to write the handler I'm after. First, understand, I have a continuous terrible time even using gnus anymore. It seems my connection to news.gmane.io is so tenuous that if I read for even a minute my connection closes or stagnates or something so if I try to move to another message in gnus it just draws the `gnus busy' thing and no further action is possible until I close and reopen the server. Or, more accurately stated; closing the server prompts gnus to reopen it I guess. traceroute shows a long string or `* * *' in midst of tracing my route to news.gmane.io .. I guess its bad enough that it has to be constantly refreshed manually. Makes it a real grind to use gnus. Before Eric posted the code below: I'd have to go to server buffer and close then open the server. Or even restart gnus entirely with `R'. some time ago: Erica A; on gmane.emacs.gnus.general posted this: (dolist (elem gnus-opened-servers) (gnus-close-server (car elem))) If I eval that it will allow me to proceed in gnus in a few seconds. But then when I read anything or pause a while it needs manual attention again. So, I think I would like to combine the `dolist' with a gnus-daemon-handler similar to the example larsi gave: (gnus-demon-add-handler 'gnus-demon-close-connections 30 t) Long ago I had at least two daemon handlers in ~/.gnus but over time I've lost track of them. Just having a hell of a time figuring out how to combine a gnus daemon handler with: (dolist (elem gnus-opened-servers) (gnus-close-server (car elem))) Hopefully someone will be willing to take a stab at it and I can see how to go about it.