Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sun-barr!lll-winken!ames!sgi!dragon!dblues.wpd.sgi.com!jackr From: jackr@dblues.wpd.sgi.com (Jack Repenning) Newsgroups: comp.emacs Subject: Re: emacs server. Message-ID: <1990Dec4.235950.9119@relay.wpd.sgi.com> Date: 4 Dec 90 23:59:50 GMT References: <1990Nov30.212956.27042@bigsur.uucp> Sender: news@relay.wpd.sgi.com ( CNews Account ) Reply-To: jackr@dblues.wpd.1.com Organization: Silicon Graphics, Inc. Lines: 43 In article <1990Nov30.212956.27042@bigsur.uucp>, fwpui2@bmerh453.BNR.CA (Larry Greenfield) writes: |> The way I would like this process to work is for the server to |> simply insert the file into the buffer and immediately issue a |> server-done to emacsclient. I would also like to retain the |> original implementation for mail, etc. Andy Norman makes a fine little extended emacsserver, called ``gnuserv.'' It does just exactly what you request here (the client is named gnuclient; if you invoke "gnuclient file", it waits; if you do "gnuclient -q file" it doesn't. Set $EDITOR to the former; alias the latter to something easy to type). It also includes a thing called gnudoit, which passes an arbitrary elisp form to Emacs. For example, I have my mail-notifier do a "gnudoit '(mh-inc-folder)'" when I boink it, so that Emacs incorporates my mail. It also works among multiple machines, so you can keep your edit server on your home machine, and edit files residing on others, by typing "gnuclient [-q] filename" into a window on the other machine. This mechanism includes security features, to prevent others from abusing your editor. It's fully explained in the man page. Really effective use of the remote feature requires either some kind of widespread policy about handling NFS mounts, or Andy's wonderful ange-ftp.el code. Gnuserv also includes some minor modifications to emacs so that, when running under X11, it can deiconify and raise itself. By default, this is included in the find-file-hooks, so you can keep your edit server iconified, and have it raise when things come in. These changes are essentially independant: you can use them without gnuserv, you can use gnuserv without the X11 changes. [All this! And, for only $19.95 extra, it includes a Ginsu knife!] I tried to email you a tarball containing gnuserv, but the message was bounced by BNRGATE, saying fwpui2 isn't allowed to email on NetNorth. Send me a working email address, and I'll send you the stuff - or, contact Ange directly: he likes to be recognized for his great work! Jack Repenning Silicon Graphics, Inc. Brought to you by Super Global Mega Corp .com