From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/53287 Path: main.gmane.org!not-for-mail From: John Paul Wallington Newsgroups: gmane.emacs.gnus.general Subject: Re: How to make gnus read something besides .gnus in batch mode Date: Mon, 30 Jun 2003 08:01:32 +0100 Sender: ding-owner@lists.math.uh.edu Message-ID: <87of0gujzn.fsf@indigo.shootybangbang.com> References: <87smpsuqwk.fsf@indigo.shootybangbang.com> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1056956584 7348 80.91.224.249 (30 Jun 2003 07:03:04 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 30 Jun 2003 07:03:04 +0000 (UTC) Original-X-From: ding-owner+M1831@lists.math.uh.edu Mon Jun 30 09:03:02 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 19Wsgo-0001uB-00 for ; Mon, 30 Jun 2003 09:03:02 +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 19Wsgs-0004gk-00; Mon, 30 Jun 2003 02:03:06 -0500 Original-Received: from sclp3.sclp.com ([64.157.176.121]) by malifon.math.uh.edu with smtp (Exim 3.20 #1) id 19Wsgn-0004gf-00 for ding@lists.math.uh.edu; Mon, 30 Jun 2003 02:03:01 -0500 Original-Received: (qmail 94627 invoked by alias); 30 Jun 2003 07:03:01 -0000 Original-Received: (qmail 94622 invoked from network); 30 Jun 2003 07:03:01 -0000 Original-Received: from main.gmane.org (80.91.224.249) by sclp3.sclp.com with SMTP; 30 Jun 2003 07:03:01 -0000 Original-Received: from list by main.gmane.org with local (Exim 3.35 #1 (Debian)) id 19Wsfe-0001nL-00 for ; Mon, 30 Jun 2003 09:01:50 +0200 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 19Wsfb-0001mh-00 for ; Mon, 30 Jun 2003 09:01:47 +0200 Original-Lines: 29 Original-X-Complaints-To: usenet@main.gmane.org X-Attribution: jpw X-Face: R(_z-rF:grdKO.*u`n);p.i$Eiz=h^CO5eDYv"4:K@#\HN09*Ykx}}B{kF/KH}%f_o^Wp wrote: >> Many arguments are deleted from `command-line-args' as they are >> processed. How about checking the `noninteractive' variable ? > > probably being a horrible pest here but how would I make emacs cough > up the contents of `noninteractive' > > something like: > emacs -batch -eval '(noninteractive)' but the syntax is all dorked up. I don't think it makes sense to heed `noninteractive' in a form that is passed to emacs -batch -eval because that would be redundant. [Nevertheless, emacs -batch -eval 'noninteractive' is syntactically correct at least, and to "make it do something" you could say emacs -batch -eval '(print noninteractive)' or emacs -batch -eval '(if noninteractive (print "foo"))'.] It makes more sense to heed `noninteractive' in your .gnus file. Also, wrt this invocation mentioned in your first post: emacs -q -no-site-file -batch -l ~/.my_gnus.el -f gnus-agent-batch Maybe it helps to frob the variable `gnus-init-file' to avoid loading ~/.gnus ? For example, you could put (setq gnus-init-file (expand-file-name "~/.my_gnus.el")) at the start of ~/.my_gnus.el (untested).