(getenv): Pass frame to getenv-internal.
authorDavid Kastrup <dak@gnu.org>
Sun, 13 May 2007 20:54:15 +0000 (20:54 +0000)
committerDavid Kastrup <dak@gnu.org>
Sun, 13 May 2007 20:54:15 +0000 (20:54 +0000)
lisp/env.el

index 33d4287..346bd3b 100644 (file)
@@ -212,7 +212,8 @@ in the environment list of the selected frame."
   (let ((value (getenv-internal (if (multibyte-string-p variable)
                                    (encode-coding-string
                                     variable locale-coding-system)
-                                 variable))))
+                                 variable)
+                               frame)))
     (if (and enable-multibyte-characters value)
        (setq value (decode-coding-string value locale-coding-system)))
     (when (interactive-p)