Path: utzoo!utgpu!water!watmath!clyde!att!osu-cis!tut.cis.ohio-state.edu!bloom-beacon!gatech!bbn!bbn.com!mesard From: mesard@bbn.com (Wayne Mesard) Newsgroups: comp.emacs Subject: Re: setenv inside gemacs? Message-ID: <30520@bbn.COM> Date: 5 Oct 88 18:09:07 GMT References: <860006@hpcljms.HP.COM> Sender: news@bbn.COM Lines: 22 From article <860006@hpcljms.HP.COM>, by brians@hpcljms.HP.COM (Brian Sullivan): > I need to know if it is possible to set environment variable in GNU > emacs. I have set up some bindings to compile the file that I am > editing but the compiler needs to have some environment variables set Well, an apropos on "env" points to (among other things): process-environment's value is ([[my environment deleted]]) Documentation: List of strings to append to environment of subprocesses that are started. Each string should have the format ENVVARNAME=VALUE. > I notice that GNU emacs does have an eLisp > fuction "getenv" but no "setenv" or "putenv". Actually there is a setenv in environ.c, but it's enclosed in an #ifdef MAINTAIN_ENVIRONMENT, which I imagine is not set by default. -- void *Wayne_Mesard(); MESARD@BBN.COM BBN, Cambridge, MA