Path: utzoo!mnetor!uunet!lll-winken!lll-lcc!ames!hc!beta!unm-la!unmvax!turing.UNM.EDU!mike From: mike@turing.UNM.EDU (Michael I. Bushnell) Newsgroups: comp.emacs Subject: Re: Need Info: Server Mode Message-ID: <844@unmvax.unm.edu> Date: 1 Mar 88 15:25:20 GMT References: <3590013@hpindda.HP.COM> <262@gmdka.UUCP> Sender: news@unmvax.unm.edu Reply-To: mike@turing.UNM.EDU.UUCP (Michael I. Bushnell) Organization: University of New Mexico, Albuquerque Lines: 47 In article <262@gmdka.UUCP> fuchs@gmdka.UUCP (Harald Fuchs) writes: > >GNU Emacs must run in the foreground in order to be able to respond to an >emacsclient. This can be achieved by two means: >- Start up an Emacs subshell (M-x shell) and run your application there. >- Use X windows or something of the kind. > > Harald Fuchs Not so. In fact, I can prove it. This article got posted, right??? I had my emacs stopped (^Z) and was using rn. Saw this, and decided to post. So, Pnews called up 'ol emacsclient, which printed "Waiting for Emacs...". Then I ^Z-ed out of Pnews, and fg-ed my emacs. Whereupon, server read in the header and I wrote this. Shortly, I shall type C-x #, save the buffer, and ^Z emacs and fg Pnews. And then, lo and behold, emacsclient will print "Done."...and if I list the article, it's still there. No need for subshells, windows, or any other garbage. Guess why??? Emacs client can connect to a socket even when the owner is a sleep. It can even write...remember UNIX? PSEUDO-synchronized I/O. Anyway, once emacsclient has connected and written its little message into the kernel's buffer, it makes no difference if it runs or not. When I resume emacs, it reads that buffer and *POW* there we are. Geez. I wish 'ol RMS would fix the manual on this one. Michael I. Bushnell Internet: mike@turing.unm.edu UUCP: mike@turing.unm.edu Bitnet: mike@turing.unm.edu CSnet: mike@turing.unm.edu YourFavoriteNet: mike@turing.unm.edu Golly, don't domains make everything simpler? For peoply who run UUCP but haven't switched over to smail *yet*, you can try {ucbvax,gatech}!unmvax!turing!mike. Or write: {Box 295, Coronado Hall} or {Computer Science, Farris Engineering Center} University of New Mexico Albuquerque, NM 87131 Or call: (505)277- [2992=dorm][6116=work] I work for the CS department. But don't blame them.