* server.el (server-with-environment): Don't fail for negative entries in ENV.
authorJuanma Barranquero <lekktu@gmail.com>
Wed, 11 Feb 2009 09:22:59 +0000 (09:22 +0000)
committerJuanma Barranquero <lekktu@gmail.com>
Wed, 11 Feb 2009 09:22:59 +0000 (09:22 +0000)
lisp/ChangeLog
lisp/server.el

index b18c04e..a650253 100644 (file)
@@ -1,4 +1,9 @@
-2009-02-10  Dan Nicolaescu  <dann@ics.uci.edu>
+2009-02-11  Juanma Barranquero  <lekktu@gmail.com>
+
+       * server.el (server-with-environment):
+       Don't fail for negative entries in ENV.
+
+2009-02-11  Dan Nicolaescu  <dann@ics.uci.edu>
 
        * vc-dir.el (vc-dir-filename-mouse-map): Rename from vc-dir-mouse-map.
        (vc-default-dir-printer): Add a comment about updating this function.
index f42be58..cd9c5fa 100644 (file)
@@ -240,9 +240,9 @@ ENV should be in the same format as `process-environment'."
     `(let ((process-environment process-environment))
        (dolist (,var ,vars)
          (let ((,value (getenv-internal ,var ,env)))
-           (push (if (null ,value)
-                     ,var
-                   (concat ,var "=" ,value))
+           (push (if (stringp ,value)
+                     (concat ,var "=" ,value)
+                   ,var)
                  process-environment)))
        (progn ,@body))))