view etc/editclient.sh @ 1037:3a01f3148bff

[xemacs-hg @ 2002-10-08 03:24:18 by youngs] 2002-09-03 John Paul Wallington <jpw@shootybangbang.com> * subr.el (with-output-to-string): Synch with GNU Emacs 21; avoids leaking temp buffers by killing rather than erasing them, and doesn't execute BODY in temporary `standard-output' buffer.
author youngs
date Tue, 08 Oct 2002 03:24:22 +0000
parents 3ecd8885ac67
children
line wrap: on
line source

#!/bin/sh
if gnuclient -batch -eval t >/dev/null 2>&1; then
  exec gnuclient ${1+"$@"}
else
  xemacs -unmapped -f gnuserv-start &
  until gnuclient -batch -eval t >/dev/null 2>&1
  do
     sleep 1
  done
  exec gnuclient ${1+"$@"}
fi