Article View: gnu.emacs.help
Article #189041Re: accessing environment variables in Lisp expressions (SUMMARY)
From: Victor Miller
Date: Wed, 08 May 1991 14:59
Date: Wed, 08 May 1991 14:59
16 lines
1610 bytes
1610 bytes
I've always wondered why there isn't a putenv corresponding to getenv. There are two possibilities for this: 1) just change the environment that emacs "sees" without changing the environment in the program invoking emacs, or 2) changing both. As far a I understand (which might be faulty), getenv gets the value from the variable process-environment. There are times that I have wanted to change an environment variable (at least as seen by emacs). A few random print commands look to the environment to find which printer to print on. On a related theme, it would be nice to have a command, refresh-environment, which would get a new copy of the invoking program's environemnt. -- Victor S. Miller Vnet and Bitnet: VICTOR at WATSON Internet: victor@watson.ibm.com IBM, TJ Watson Research Center
Technical Details
Message-ID:
<VICTOR.91May8105911@irt.watson.ibm.com>Path:
arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!bywater!arnor!arnor!victorReferences:
<9105071515.AA18931@aaec.com.uucp>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103b8b,ec5f67b26f06a171 X-Google-Attributes: gid103b8b,public X-Google-ArrivalTime: 1991-05-09 01:51:17 PST Path: arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!bywater!arnor!arnor!victor From: victor@watson.ibm.com (Victor Miller) Newsgroups: gnu.emacs.help Subject: Re: accessing environment variables in Lisp expressions (SUMMARY) Message-ID: <VICTOR.91May8105911@irt.watson.ibm.com> Date: 8 May 91 14:59:11 GMT References: <9105071515.AA18931@aaec.com.uucp> Sender: news@watson.ibm.com (NNTP News Poster) Reply-To: victor@watson.ibm.com Followup-To: gnu.emacs.help Organization: IBM, T.J. Watson Research Center Lines: 16 In-Reply-To: tsilva%aaec1.UUCP@DSPVAX.MIT.EDU's message of 7 May 91 15:15:59 GMT Nntp-Posting-Host: irt