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