home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / sys / next / misc / 23003 < prev    next >
Encoding:
Text File  |  1992-12-13  |  2.3 KB  |  47 lines

  1. Newsgroups: comp.sys.next.misc
  2. Path: sparky!uunet!ornl!rsg1.er.usgs.gov!news.cs.indiana.edu!sdd.hp.com!spool.mu.edu!wupost!udel!princeton!nimaster.princeton.edu!cedman
  3. From: cedman@princeton.edu (Carl Edman)
  4. Subject: Re: emacs-18.59 pkg for NeXT posted
  5. In-Reply-To: michael@stb.info.com's message of Sun, 13 Dec 1992 02:59:55 GMT
  6. To: michael@stb.info.com (Michael Gersten)
  7. Message-ID: <CEDMAN.92Dec13130517@capitalist.nts.uci.edu>
  8. Originator: news@nimaster
  9. Sender: news@Princeton.EDU (USENET News System)
  10. Nntp-Posting-Host: capitalist.princeton.edu
  11. Organization: University of California, Irvine
  12. References: <MexQQpq00iV447mxws@andrew.cmu.edu> <1992Dec13.025955.13216@stb.info.com>
  13. Distribution: comp
  14. Date: Sun, 13 Dec 1992 18:05:17 GMT
  15. Lines: 30
  16.  
  17. In article <1992Dec13.025955.13216@stb.info.com> michael@stb.info.com (Michael Gersten) writes:
  18.    cs4w+@andrew.cmu.edu (Charles William Swiger) writes:
  19.    >Excerpts from netnews.comp.sys.next.misc: 2-Nov-92 Re: emacs-18.59 pkg
  20.    >for NeX.. by Stephen Anderson@sapir.c 
  21.    >> It's been pointed out to me that the Emacs front end to emacs has the
  22.    >> path /usr/bin/emacs built in as the place to find an emacs executable.
  23.    >> This gives you (at least) three choices if you want to use it as a
  24.    >
  25.    >or (d) Rewrite EtermView.m to look for /usr/local/bin/emacs and then
  26.    >/usr/bin/emacs; better yet, have it search through current users' search
  27.    >path for 'emacs'....
  28.  
  29.    Or, better still, why not use the "system" call and let the shell find it,
  30.    or use "execvp/execlp" library calls (the 'p' means search the entire path)?
  31.    I'm suprised that more people don't use these.
  32.  
  33. Why not system(3) ? Because it has a ton of overhead and may do things
  34. you don't want it to do. You should only use it for shell escapes in
  35. you programs and those are fast becoming an anachronism in the age of
  36. job control and security concerns. Why not execvp/execlp(3) ? Because
  37. a user may have several versions of emacs on his system and and the
  38. first one in his default path is not the one he wants to use with
  39. Emacs and setting environment variables is notoriously painful for
  40. Workspace launched applications.
  41.  
  42. Emacs 3.0 Does The Right Thing and allows you to set the path to the
  43. emacs executable in the preferences. Maybe NeXT should start shipping
  44. it with the OS.
  45.  
  46.         Carl Edman
  47.