From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/25381 Path: main.gmane.org!not-for-mail From: Harry Putnam Newsgroups: gmane.emacs.gnus.general Subject: Re: demons and handlers Date: 26 Sep 1999 08:53:32 -0700 Sender: owner-ding@hpc.uh.edu Message-ID: References: NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1035162775 13645 80.91.224.250 (21 Oct 2002 01:12:55 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 21 Oct 2002 01:12:55 +0000 (UTC) Return-Path: Original-Received: from bart.math.uh.edu (bart.math.uh.edu [129.7.128.48]) by sclp3.sclp.com (8.8.5/8.8.5) with ESMTP id LAA23088 for ; Sun, 26 Sep 1999 11:56:37 -0400 (EDT) Original-Received: from sina.hpc.uh.edu (lists@Sina.HPC.UH.EDU [129.7.3.5]) by bart.math.uh.edu (8.9.1/8.9.1) with ESMTP id KAB22898; Sun, 26 Sep 1999 10:56:34 -0500 (CDT) Original-Received: by sina.hpc.uh.edu (TLB v0.09a (1.20 tibbs 1996/10/09 22:03:07)); Sun, 26 Sep 1999 10:56:21 -0500 (CDT) Original-Received: from sclp3.sclp.com (root@sclp3.sclp.com [204.252.123.139]) by sina.hpc.uh.edu (8.9.3/8.9.3) with ESMTP id KAA04808 for ; Sun, 26 Sep 1999 10:56:12 -0500 (CDT) Original-Received: from mail.networkone.net (qmailr@mail.networkone.net [209.144.112.75]) by sclp3.sclp.com (8.8.5/8.8.5) with SMTP id LAA23074 for ; Sun, 26 Sep 1999 11:54:11 -0400 (EDT) Original-Received: (qmail 25114 invoked from network); 26 Sep 1999 15:54:08 -0000 Original-Received: from pm3-2-112.la.networkone.net (HELO satellite.local.lan) (reader@209.144.126.112) by mail.networkone.net with SMTP; 26 Sep 1999 15:54:08 -0000 Original-Received: (from reader@localhost) by satellite.local.lan (8.9.3/8.9.1) id IAA07406; Sun, 26 Sep 1999 08:54:01 -0700 Original-To: ding@gnus.org User-Agent: Gnus/5.070096 (Pterodactyl Gnus v0.96) Emacs/20.3 Original-Lines: 27 Precedence: list X-Majordomo: 1.94.jlt7 Xref: main.gmane.org gmane.emacs.gnus.general:25381 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:25381 Karl Kleinpaste writes: > (gnus-demon-add-handler 'lars-fetch-news 5 nil) Thanks Karl, Er ... I think I'm trying to do something foolish here.. Lars function closes gnus down when finished. Should your line above work with just emacs running? I've evaled (C-xC-e) in a scatch buffer of a running gnus ..."nil" is reported in the echo area, the deed is done, then shutdown. And of course this function depends on gnus shutting down to write the .newsrc.eld that the offline gnus needs to read. (I think) How would one go about overcoming this aspect and run the code in a running emacs, periodically? (defun lars-fetch-news () (interactive) (push "/usr/local/pgnus-0.96/lisp" load-path) (let ((init-file-user "") (gnus-always-read-dribble-file t)) (gnus)) (gnus-group-send-drafts) (gnus-agent-fetch-session) (gnus-group-quit))