Mercurial > emacs
comparison lisp/server.el @ 99209:01e8c1513572
* server.el, emacsclient.c: Use TMPDIR (default /tmp) instead of hardcoded /tmp.
author | Juanma Barranquero <lekktu@gmail.com> |
---|---|
date | Wed, 29 Oct 2008 10:42:31 +0000 |
parents | 814d2d823dd7 |
children | 8ee9512061d4 |
comparison
equal
deleted
inserted
replaced
99208:45165d7f6e05 | 99209:01e8c1513572 |
---|---|
200 are done with it in the server.") | 200 are done with it in the server.") |
201 (make-variable-buffer-local 'server-existing-buffer) | 201 (make-variable-buffer-local 'server-existing-buffer) |
202 | 202 |
203 (defvar server-name "server") | 203 (defvar server-name "server") |
204 | 204 |
205 (defvar server-socket-dir (format "/tmp/emacs%d" (user-uid)) | 205 (defvar server-socket-dir |
206 (format "%s/emacs%d" (or (getenv "TMPDIR") "/tmp") (user-uid)) | |
206 "The directory in which to place the server socket.") | 207 "The directory in which to place the server socket.") |
207 | 208 |
208 (defun server-clients-with (property value) | 209 (defun server-clients-with (property value) |
209 "Return a list of clients with PROPERTY set to VALUE." | 210 "Return a list of clients with PROPERTY set to VALUE." |
210 (let (result) | 211 (let (result) |