[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]


From: Thomas F. Burdick
Subject: setenv
Date: 14 Sep 2001 15:39:07 -0700

In Emacs 20 (and 21), setenv modifies process-environment.  But it's
named after a C function that affects the current process, not just
child processes.  While it's documented as such, I think it's a
misfeature because its name implies other behavior (that it acts like
the C function of the same name).  This also means there's no way to
affect the environment of the currently running Emacs from Elisp.

My solution: getenv should be renamed to get-environment, setenv
renamed to set-environment, and getenv and setenv changed to behave as
their C namesakes.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]