summaryrefslogtreecommitdiff
path: root/bin/emacsclient
diff options
context:
space:
mode:
Diffstat (limited to 'bin/emacsclient')
-rwxr-xr-xbin/emacsclient5
1 files changed, 3 insertions, 2 deletions
diff --git a/bin/emacsclient b/bin/emacsclient
index 91cef0aa..e11cbe9c 100755
--- a/bin/emacsclient
+++ b/bin/emacsclient
@@ -77,10 +77,11 @@ if [ "$update" = true \
eval isset=\${$var+x}
if [ "$isset" = "x" ]; then
eval val=\$$var
- args="$args"' (setenv "'$var'" "'$val'")'
+ args="$args"' "'$var'" "'$val'"'
fi
done
- "$emacsclient" --eval "(progn$args (spw/propagate-new-environment))"
+ [ -n "$args" ] \
+ && "$emacsclient" --eval "(spw/update-environment$args))"
fi
# emacsclient(1) requires an argument. As a special case, if there are no