Path: utzoo!mnetor!uunet!husc6!tut.cis.ohio-state.edu!bloom-beacon!mit-eddie!galaxy.UUCP!worley From: worley@galaxy.UUCP (Dale Worley) Newsgroups: comp.emacs Subject: set EDITOR=emacs Message-ID: <8803071638.AA11831@galaxy.compass.com> Date: 7 Mar 88 16:38:02 GMT Sender: daemon@eddie.MIT.EDU Lines: 19 Often programs want to allow the user to edit some lump of text, so they start up a subprocess running "your favorite editor" to do so. They usually use the EDITOR environment variable to let you specify the editor. Of course, if you normally run your shell inside an Emacs shell window, you get fried if the program starts up a subordinate Emacs, so you have to exit and run the program outside of Emacs. What I want is a program "emacsclient" which acts like an editor (as its invoker sees it), but what it really does is take the file name and send it to the Emacs which ran the shell which ran the program which ran emacsclient (in the house that Jack built). Then Emacs would set up a buffer for editing the file, and when I exited (C-c C-c on the buffer), Emacs would tell emacsclient that the file was edited, and it should return to its caller. I know that some sort of facility like this exists for X windows, but I would like it for Sun windows. Does anybody know how to do this? Dale