🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.next.sysadmin
Article #225

Re: Emacs environment variable lost

#225
From: Patrice Belleville
Date: Fri, 24 Jul 1992 14:56
26 lines
1534 bytes
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. ---   *|
\***************************************************************************/
Technical Details
Message-ID: <1992Jul24.145633.28258@cs.sfu.ca>
Path: arc1-ca.pugleaf.net!sparky!uunet!van-bc!ubc-cs!fornax!patrice
References: <CMOORE.92Jul24092902@zenobia.mit.edu>

Show Full Headers
Complete Article Headers
Newsgroups: comp.sys.next.sysadmin
Path: arc1-ca.pugleaf.net!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