Steve Youngs <youngs(a)xemacs.org> writes:
|--==> "SJ" == Simon Josefsson <jas(a)extundo.com>
writes:
SJ> Steve Youngs <youngs(a)xemacs.org> writes:
>>|--==> "SJT" == Stephen J Turnbull <stephen(a)xemacs.org>
writes:
>>
SJT> xemacs -batch -no-autoloads \
SJT> -eval '(if (emacs-version>= 21 4) (write-file "can-do"))'
>>
>>Ew, yuck. I hate having to rely on writing to disk just to test a
>>condition. Any other ideas?
SJ> xemacs -batch -no-autoloads \
SJ> -eval '(if (emacs-version>= 21 4) (princ "can-do"))'
| grep can-do
Nice idea, but doesn't work in the case of XEmacs running from a
script that redirects the output.
Well, then the "xemacs" command wouldn't be xemacs as we know it, and
by definition nothing is guaranteed to work.
But if it is possible to support xemacs-in-script and solve the
problem (without writing to disk), that would be nicer, of course.