home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / gnu / emacs / help / 3814 < prev    next >
Encoding:
Internet Message Format  |  1992-08-21  |  1.8 KB

  1. Path: sparky!uunet!olivea!mintaka.lcs.mit.edu!hal.gnu.ai.mit.edu!petrilli
  2. From: petrilli@hal.gnu.ai.mit.edu (Chris Petrilli)
  3. Newsgroups: gnu.emacs.help
  4. Subject: Re: emacsclient - how do I use it?
  5. Message-ID: <1992Aug21.212736.11003@mintaka.lcs.mit.edu>
  6. Date: 21 Aug 92 21:27:36 GMT
  7. References: <KEVIN.92Aug21110652@buffalobill.edscom.demon.co.uk>
  8. Sender: news@mintaka.lcs.mit.edu
  9. Distribution: gnu
  10. Organization: Department of Redundency Department
  11. Lines: 31
  12.  
  13. In article <KEVIN.92Aug21110652@buffalobill.edscom.demon.co.uk> kevin@edscom.demon.co.uk (Kevin Broadey) writes:
  14. >When I built my emacs from distribution 18.57 I noticed an "emacsclient"
  15. >executable in the etc directory.  I assume this is some clever thing to allow
  16. >you to have several emacs users but only one emacs on your machine (useful
  17. >considering the size of emacs!).  If I'm right, how do you use it?  If I'm
  18. >wrong, what is it?!  I did RTFM but I couldn't find a reference to it.
  19.  
  20. emacsclient lets you use emacs as your editor from another program
  21. such as TRN, or NN, rather than loading a new copy it will use an
  22. already running copy.  While I'm sure this is designed for X windows,
  23. I'm using it right now to post from TRN under iSCREEN.  All I have to
  24. do is change my EDITOR envvar to be `emacsclient.'  Then when I'm
  25. done, I hit C-x #, and it returns me to where I was in Emacs, and
  26. saves the file.
  27.  
  28. To start a server, put this in your .emacs file:
  29.  
  30.         (server-start)
  31.  
  32. and then you just need to use the syntax:
  33.  
  34.         emacsclient <filename>
  35.  
  36. It really isn't designed for multiple users, since that would be a
  37. MAJOR security hole.  But it works great for one user.
  38.  
  39. Chris
  40. -- 
  41. | Chris Petrilli                                             ____
  42. | petrilli@gnu.ai.mit.edu             ``Quayle is a bozoe.'' \  /
  43. | I don't even speak for myself.                              \/
  44.