Commit 15d40fa4 authored by Stefan Monnier's avatar Stefan Monnier

(server-socket-name): Always use /tmp and non-qualified hostname.

parent bb76239b
......@@ -148,11 +148,8 @@ are done with it in the server.")
(make-variable-buffer-local 'server-existing-buffer)
(defvar server-socket-name
(if (or (not (file-writable-p "~/"))
(and (file-writable-p "/tmp/")
(not (zerop (logand (file-modes "/tmp/") 512)))))
(format "/tmp/esrv%d-%s" (user-uid) (system-name))
(format "~/.emacs-server-%s" (system-name))))
(format "/tmp/esrv%d-%s" (user-uid)
(substring (system-name) 0 (string-match "\\." (system-name)))))
;; If a *server* buffer exists,
;; write STRING to it for logging purposes.
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