Path: utzoo!utgpu!water!watmath!clyde!att!osu-cis!tut.cis.ohio-state.edu!mailrus!ames!pasteur!ucbvax!bloom-beacon!hermes!mly From: mly@hermes.ai.mit.edu (Richard Mlynarik) Newsgroups: comp.emacs Subject: setenv in GNU Emacs Message-ID: <3159@hermes.ai.mit.edu> Date: 6 Oct 88 02:32:33 GMT Reply-To: mly-wh@wheaties.ai.mit.edu.UUCP Organization: MIT AI Lab, Cambridge, MA Lines: 13 In-Reply-To: <860006@hpcljms.HP.COM> #define MAINTAIN_ENVIRONMENT in your config.h I have never been able to understand why this isn't part of the standard Emacs configuration (RMS is opposed to it for some reason.) This defines the function setenv and slightly extends the getenv function. The code is in emacs/src/environ.c. [BTW, an interesting side-effect of having setenv is that it is (almost) possible to use Emacs as one's login shell. (One actually needs to run a small trampoline program to set up the TERMinal-type information for Emacs.]