From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/25363 Path: main.gmane.org!not-for-mail From: Harry Putnam Newsgroups: gmane.emacs.gnus.general Subject: demons and handlers Date: 25 Sep 1999 10:09:02 -0700 Sender: owner-ding@hpc.uh.edu Message-ID: NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1035162761 13570 80.91.224.250 (21 Oct 2002 01:12:41 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 21 Oct 2002 01:12:41 +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 NAA13592 for ; Sat, 25 Sep 1999 13:12:49 -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 MAB21495; Sat, 25 Sep 1999 12:12:47 -0500 (CDT) Original-Received: by sina.hpc.uh.edu (TLB v0.09a (1.20 tibbs 1996/10/09 22:03:07)); Sat, 25 Sep 1999 12:12:00 -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 MAA23446 for ; Sat, 25 Sep 1999 12:11:50 -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 NAA13562 for ; Sat, 25 Sep 1999 13:09:49 -0400 (EDT) Original-Received: (qmail 15471 invoked from network); 25 Sep 1999 17:09:47 -0000 Original-Received: from pm3-2-77.la.networkone.net (HELO satellite.local.lan) (reader@209.144.126.77) by mail.networkone.net with SMTP; 25 Sep 1999 17:09:47 -0000 Original-Received: (from reader@localhost) by satellite.local.lan (8.9.3/8.9.1) id KAA04648; Sat, 25 Sep 1999 10:09:42 -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:25363 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:25363 I've never been able to figure out the demon/handler syntax enough to get much use from it. Using a function posted by Larsi a while back, I want to run this function every 5 minutes while online. Rather than try for sophisticated code to check for onlinedness or whatever, probably easier to just eval the code when going online and "uneval" it when going off. (not sure how to uneval code either but seems one could) The function allows an online gnus to exchange information with an offline gnus: (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)) I'd like to run this every 5 minutes. How would this be accomplished?