]> git.eshelyaron.com Git - emacs.git/commit
emacsclient: prefer XDG_RUNTIME_DIR (Bug#33367)
authorPaul Eggert <eggert@cs.ucla.edu>
Sun, 2 Dec 2018 07:06:06 +0000 (23:06 -0800)
committerPaul Eggert <eggert@cs.ucla.edu>
Sun, 2 Dec 2018 07:08:48 +0000 (23:08 -0800)
commit92282cb50248117185774cf8076d1ff83d501be7
tree0e03dbd31e82b3f962b54c88ce0be1290b23d7ff
parent070ef95c1007cb3d54e04bc337d9fb5463912cc1
emacsclient: prefer XDG_RUNTIME_DIR (Bug#33367)

* lib-src/emacsclient.c: Disable -Wformat-truncation=2,
to avoid false alarms about the new snprintf calls.
(local_sockname): New function.
(set_local_socket): Use it.  Prefer XDG_RUNTIME_DIR (if set)
for location of socket directory.  Avoid unnecessary memory
allocation by using snprintf to destination.
* lisp/server.el (server-socket-dir): Prefer XDG_RUNTIME_DIR if set.
admin/notes/multi-tty
doc/misc/efaq.texi
etc/NEWS
lib-src/emacsclient.c
lisp/server.el