]> git.eshelyaron.com Git - emacs.git/commitdiff
* env.el (getenv): When FRAME is non-nil, pass the frame environment
authorJuanma Barranquero <lekktu@gmail.com>
Tue, 10 Feb 2009 10:24:59 +0000 (10:24 +0000)
committerJuanma Barranquero <lekktu@gmail.com>
Tue, 10 Feb 2009 10:24:59 +0000 (10:24 +0000)
  to `getenv-internal', not the frame.  (Bug#2259)

lisp/ChangeLog
lisp/env.el

index cb86544fa60066ac17a80b8e55767f631aed762d..6fd7836c914f97b22ed92b5e095eeda1cac1210e 100644 (file)
@@ -1,3 +1,8 @@
+2009-02-10  Eric Hanchrow  <eric.hanchrow@gmail.com>
+
+       * 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  <handa@m17n.org>
 
        * descr-text.el (describe-char-display): On terminal, if terminal
index 8d8bebe09ba20aa24a79790b0cf7d9091efb0588..33d5545edae50625a0366149b75dea4cf17f1908 100644 (file)
@@ -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)