Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!gem.mps.ohio-state.edu!apple!oliveb!mintaka!daemon
From: boaz@Athena.MIT.EDU (Boaz Ben-Zvi)
Newsgroups: gnu.emacs
Subject: Re: GNUemacs and Xwindows
Message-ID: <1Sw2Xn#5pBGyR=daemon@mintaka>
Date: 25 Sep 89 20:47:26 GMT
References: <14559@bloom-beacon.MIT.EDU>  <1797@convex.UUCP>
Sender: daemon@mintaka.lcs.mit.edu (Lucifer Maleficius)
Distribution: usa
Lines: 27

"How can I bring up Emacs with no window without supplying
 command line parameters (like -nw)?"

 1) In your emacs window call server-start (possibly in your .emacs).
    then specify "emacsclient" as the editor. E.g.
	set EDITOR=/usr/bin/emacsclient
    Whenever the editor is needed (e.g. called by ucb mail or
    by latex), you can edit it in the existing emacs window.

 2) By unsetting the environment DISPLAY variable. E.g. put the
	#! /bin/csh -f
	set odis = $DISPLAY
	unsetenv DISPLAY
	/usr/bin/X11/xemacs
	setenv DISPLAY $odis

	#!/bin/sh
	exec emacs -nw $*

	set EDITOR=..../emacs-nw

--------------
Boaz Ben-Zvi
boaz@neutron.lcs.mit.edu
---------------------

*** Some lines were missing from my previous posting. Who wrote "xrn" ???