From: Juanma Barranquero Date: Tue, 10 Feb 2009 10:24:59 +0000 (+0000) Subject: * env.el (getenv): When FRAME is non-nil, pass the frame environment X-Git-Tag: emacs-pretest-23.0.91~305 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=263903f794bacb929e82de2bb0cc8f6f3683890e;p=emacs.git * env.el (getenv): When FRAME is non-nil, pass the frame environment to `getenv-internal', not the frame. (Bug#2259) --- diff --git a/lisp/ChangeLog b/lisp/ChangeLog index cb86544fa60..6fd7836c914 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,3 +1,8 @@ +2009-02-10 Eric Hanchrow + + * env.el (getenv): When FRAME is non-nil, pass the frame environment + to `getenv-internal', not the frame. (Bug#2259) + 2009-02-10 Kenichi Handa * descr-text.el (describe-char-display): On terminal, if terminal diff --git a/lisp/env.el b/lisp/env.el index 8d8bebe09ba..33d5545edae 100644 --- a/lisp/env.el +++ b/lisp/env.el @@ -198,7 +198,9 @@ in the environment list of the selected frame." (encode-coding-string variable locale-coding-system) variable) - frame))) + (and frame + (assq 'environment + (frame-parameters frame)))))) (if (and enable-multibyte-characters value) (setq value (decode-coding-string value locale-coding-system))) (when (interactive-p)