changeset 47658:de014e746a6b

(server-socket-name): Always use /tmp and non-qualified hostname.
author Stefan Monnier <monnier@iro.umontreal.ca>
date Fri, 27 Sep 2002 22:06:02 +0000
parents e8df9e898436
children 473041262ca1
files lisp/server.el
diffstat 1 files changed, 2 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/server.el	Fri Sep 27 21:12:12 2002 +0000
+++ b/lisp/server.el	Fri Sep 27 22:06:02 2002 +0000
@@ -148,11 +148,8 @@
 (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.