From xemacs-m  Mon Jun 23 05:50:46 1997
Received: from jagor.srce.hr (hniksic@jagor.srce.hr [161.53.2.130])
	by xemacs.org (8.8.5/8.8.5) with ESMTP id FAA29118
	for <xemacs-beta@xemacs.org>; Mon, 23 Jun 1997 05:50:43 -0500 (CDT)
Received: (from hniksic@localhost)
          by jagor.srce.hr (8.8.5/8.8.4)
	  id MAA06433; Mon, 23 Jun 1997 12:50:38 +0200 (MET DST)
To: karlheg@inetarena.com (Karl M. Hegbloom)
Cc: XEmacs Developers <xemacs-beta@xemacs.org>
Subject: Re: [gnuclient] -batch option isn't documented
References: <87yb8127rr.fsf@bittersweet.inetarena.com> <kig205tohzy.fsf@jagor.srce.hr> <87k9jl1tum.fsf@bittersweet.inetarena.com>
X-Attribution: Hrv
X-Face: Mie8:rOV<\c/~z{s.X4A{!?vY7{drJ([U]0O=W/<W*SMo/Mv:58:*_y~ki>xDi&N7XG
        KV^$k0m3Oe/)'e%3=$PCR&3ITUXH,cK>]bci&<qQ>Ff%x_>1`T(+M2Gg/fgndU%k*ft
        [(7._6e0n-V%|%'[c|q:;}td$#INd+;?!-V=c8Pqf}3J
From: Hrvoje Niksic <hniksic@srce.hr>
Date: 23 Jun 1997 12:50:38 +0200
In-Reply-To: karlheg@inetarena.com's message of "23 Jun 1997 03:44:49 -0700"
Message-ID: <kig205tlhj5.fsf@jagor.srce.hr>
Lines: 26
X-Mailer: Gnus v5.4.59/XEmacs 20.3(beta8) - "Copenhagen"

karlheg@inetarena.com (Karl M. Hegbloom) writes:

> For it to just print the result to STDOUT.

That's what `-batch' does for me.

> Instead, it opened an X frame, and printed nothing.

Well, it evaluated the expression prior to opening the frame.  Try
this:

gnuclient -eval '(insert "foo\n")'

A notable catch is that the expression is evaluated *before* the
buffer is created, which is counter-intuitive.  However, I have not
found a way to implement it otherwise, as things would get very
complex if one specified many files, etc.

> I found `-batch' in the C.

I'll document it for the next version, if I find the time.

-- 
Hrvoje Niksic <hniksic@srce.hr> | Student at FER Zagreb, Croatia
--------------------------------+--------------------------------
The end of the world is coming...  SAVE YOUR BUFFERS!

