home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / sys / next / sysadmin / 4364 < prev    next >
Encoding:
Text File  |  1992-07-25  |  1.5 KB  |  38 lines

  1. Newsgroups: comp.sys.next.sysadmin
  2. Path: sparky!uunet!van-bc!ubc-cs!fornax!patrice
  3. From: patrice@cs.sfu.ca (Patrice Belleville)
  4. Subject: Re: Emacs environment variable lost
  5. Message-ID: <1992Jul24.145633.28258@cs.sfu.ca>
  6. Organization: CSS, Simon Fraser University, Burnaby, B.C., Canada
  7. References: <CMOORE.92Jul24092902@zenobia.mit.edu>
  8. Distribution: cct
  9. Date: Fri, 24 Jul 1992 14:56:33 GMT
  10. Lines: 26
  11.  
  12. From article <CMOORE.92Jul24092902@zenobia.mit.edu>, by cmoore@zenobia.mit.edu (Christopher B. Moore):
  13. > I've noticed (while installing the Auc-TeX package) that evaluation of
  14. > (getenv "HOSTTYPE") in an Emacs2.1 window started by clicking on the
  15. > Emacs2.1 icon in the workspace returns nil.  However, in an Emacs2.1
  16. > window started from the commandline it returns "next".  What gives?
  17. > Christopher B. Moore
  18. > cmoore@maggie.mit.edu
  19.  
  20.  
  21.     Well, the problem is that the  workspace does not  run your .login or
  22. your .cshrc.   So programs  started from it  will not  have access  to   your
  23. favorite environment variables. One fix is to add the following lines to your
  24. .emacs file:
  25.  
  26. (setq process-environment (append
  27.         process-environment
  28.     '("HOSTTYPE=next" "OTHERVAR=othervalue" [more of these])))
  29.  
  30.  
  31. -- 
  32. /***************************************************************************\
  33. |* Patrice Belleville                      patrice@cs.sfu.ca *|
  34. |*   --- Simon Fraser University is not responsible for my mistakes. ---   *|
  35. \***************************************************************************/
  36.