Commit 44070fdf authored by Karoly Lorentey's avatar Karoly Lorentey
Browse files

Fix environment variables on emacsclient frames.

lisp/server.el (server-getenv): Fix string lookup in alist.

parent 061e4e7f
......@@ -891,7 +891,7 @@ If FRAME is nil or missing, then the selected frame is used."
(setq env (server-client-get (car clients) 'environment))
(if (null env)
(getenv variable)
(assq variable env)))))
(cdr (assoc variable env))))))
(defun server-unload-hook ()
(server-start t)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment