Path: utzoo!utgpu!watmath!uunet!tut.cis.ohio-state.edu!EDDIE.MIT.EDU!think!compass!worley From: think!compass!worley@EDDIE.MIT.EDU (Dale Worley) Newsgroups: gnu.emacs Subject: Info. Request: Invoking GNU Emacs from Lisp on a SUN Message-ID: <8811071454.AA02370@galaxy.compass.com> Date: 7 Nov 88 14:54:01 GMT Sender: daemon@tut.cis.ohio-state.edu Distribution: gnu Organization: GNUs Not Usenet Lines: 21 The closest to "bringing up an Emacs window" is to invoke the program "emacsclient" (with one or more filenames as arguments). emacsclient sends an IPC message to your Emacs (which must have previously run the command 'server-start'). Emacs receives the message, and brings up a window. When you type C-x # at the window, Emacs sends an "I'm done" message to emacsclient. If you want to communicate text with the Emacs, you have to put it in files (unless you want to hack the client/server code), but that is not unreasonable. As far as I know, there is no way to use emacsclient to force the buffer into a particular mode directly, but (since the server code uses find-file) you can use the extension to force the buffer into a mode (see var. auto-mode-alist), or use local variable settings in the text file. Perhaps emacsclient should be modified to support some of the Emacs startup options (+linenumber, -f function, etc.). Dale