From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/25402 Path: main.gmane.org!not-for-mail From: Harry Putnam Newsgroups: gmane.emacs.gnus.general Subject: Re: demons and handlers Date: 26 Sep 1999 22:36:51 -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=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: main.gmane.org 1035162793 13773 80.91.224.250 (21 Oct 2002 01:13:13 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 21 Oct 2002 01:13:13 +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 BAA29772 for ; Mon, 27 Sep 1999 01:39:53 -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 AAB24241; Mon, 27 Sep 1999 00:39:48 -0500 (CDT) Original-Received: by sina.hpc.uh.edu (TLB v0.09a (1.20 tibbs 1996/10/09 22:03:07)); Mon, 27 Sep 1999 00:39:52 -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 AAA10109 for ; Mon, 27 Sep 1999 00:39:41 -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 BAA29751 for ; Mon, 27 Sep 1999 01:37:36 -0400 (EDT) Original-Received: (qmail 13725 invoked from network); 27 Sep 1999 05:37:34 -0000 Original-Received: from pm3-4-202.la.networkone.net (HELO satellite.local.lan) (reader@209.144.126.202) by mail.networkone.net with SMTP; 27 Sep 1999 05:37:34 -0000 Original-Received: (from reader@localhost) by satellite.local.lan (8.9.3/8.9.1) id WAA12640; Sun, 26 Sep 1999 22:37:26 -0700 Original-To: ding@gnus.org In-Reply-To: Kai.Grossjohann@CS.Uni-Dortmund.DE's message of "26 Sep 1999 18:54:30 +0200" 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:25402 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:25402 Kai.Grossjohann@CS.Uni-Dortmund.DE (Kai Großjohann) writes: > Harry Putnam writes: > > > (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)) > > This looks as if it was intended to be run from the command line, like > ``emacs -batch -f lars-fetch-news''. [...] snip I hadn't really thought to use it in batch mode but now that you mention it, it does work well that way. I think even better than some scanning fucntion. This way I was able to set a simple keyboard sequence to run a batch command and this function, while having an off-line (machine is online of course) gnus running that I read and post from. So by pressing a couple keys , I can call the above functionn in batch mode then view the results in the off-line gnus by pressing 'g'. The running gnus never goes online. Nice.