From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/52650 Path: main.gmane.org!not-for-mail From: Nevin Kapur Newsgroups: gmane.emacs.gnus.general Subject: Re: Run J s with a daemon/handler Date: Tue, 13 May 2003 20:27:25 -0400 Organization: Mathematical Sciences, The Johns Hopkins University Sender: ding-owner@lists.math.uh.edu Message-ID: References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1052871966 553 80.91.224.249 (14 May 2003 00:26:06 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 14 May 2003 00:26:06 +0000 (UTC) Original-X-From: ding-owner+M1194@lists.math.uh.edu Wed May 14 02:26:05 2003 Return-path: Original-Received: from malifon.math.uh.edu ([129.7.128.13]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 19Fk5s-00008l-00 for ; Wed, 14 May 2003 02:26:04 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by malifon.math.uh.edu with smtp (Exim 3.20 #1) id 19Fk7J-0004ux-00; Tue, 13 May 2003 19:27:33 -0500 Original-Received: from sclp3.sclp.com ([64.157.176.121]) by malifon.math.uh.edu with smtp (Exim 3.20 #1) id 19Fk7F-0004us-00 for ding@lists.math.uh.edu; Tue, 13 May 2003 19:27:29 -0500 Original-Received: (qmail 53299 invoked by alias); 14 May 2003 00:27:28 -0000 Original-Received: (qmail 53294 invoked from network); 14 May 2003 00:27:28 -0000 Original-Received: from main.gmane.org (80.91.224.249) by sclp3.sclp.com with SMTP; 14 May 2003 00:27:28 -0000 Original-Received: from list by main.gmane.org with local (Exim 3.35 #1 (Debian)) id 19Fk5b-00007h-00 for ; Wed, 14 May 2003 02:25:47 +0200 Mail-Followup-To: ding@gnus.org X-Injected-Via-Gmane: http://gmane.org/ Original-To: ding@gnus.org Original-Received: from news by main.gmane.org with local (Exim 3.35 #1 (Debian)) id 19Fk5a-00007Y-00 for ; Wed, 14 May 2003 02:25:46 +0200 Original-Lines: 25 Original-X-Complaints-To: usenet@main.gmane.org X-Face: 1{Uq~EBNymZ&!k.YR**'xOPoY*DHN.x;muZ{cqZTGP-}jB]}]n-a"z writes: > How can I add to this to cause gnus to run and agent fetch > (J s) after the scan in the above handler? I've used the following in the past: this will get new news and fetch it after that. (defun nk-gnus-demon-agent-fetch () (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) (message "Fetching session.") (gnus-agent-fetch-session))))) (set-window-configuration win) (gnus-group-save-newsrc)))) (gnus-demon-add-handler 'nk-gnus-demon-agent-fetch 30 3) -N