From: Phil Sainty <psainty@orcon.net.nz>
To: Eli Zaretskii <eliz@gnu.org>
Cc: emacs-devel@gnu.org
Subject: Re: Questions about XDG_RUNTIME_DIR and server-socket-dir
Date: Mon, 04 Feb 2019 10:12:50 +1300 [thread overview]
Message-ID: <e966d2eb8265cbda81f9603f86add371@webmail.orcon.net.nz> (raw)
In-Reply-To: <A0568E2C-4D1E-476D-AAE5-37E24C7E857B@gnu.org>
On 2019-02-04 00:21, Eli Zaretskii wrote:
> The client already heeds to EMACS_SOCKET_NAME. As for the server,
> since Emacs is invoked via a wrapper, I presume the wrapper could set
> server-name from the same environment variable, via --eval, no?
No, --eval isn't processed until after the init file is processed,
so if the user called (server-start) in their init file then the socket
is already set.
My recollection is that I couldn't find any way of doing something
like that. In the past I had used --daemon=NAME with a custom NAME
if the user explicitly told the wrapper to run a server; but once
it occurred to me that an init file with (server-start) remained a
problem I switched to setting TMPDIR. At the time I spent a while
trying to figure out what my options were, and that was the only
method I could come up with which would work in general.
It sounds like a custom XDG_RUNTIME_DIR is the simplest way forward,
so I'll use that approach for now.
(I do still think a EMACS_SOCKET_DIR environment variable would be a
beneficial addition, as the current code doesn't facilitate this.)
-Phil
next prev parent reply other threads:[~2019-02-03 21:12 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-02-03 5:21 Questions about XDG_RUNTIME_DIR and server-socket-dir Phil Sainty
2019-02-03 6:01 ` Eli Zaretskii
2019-02-03 9:18 ` Phil Sainty
2019-02-03 11:21 ` Eli Zaretskii
2019-02-03 21:12 ` Phil Sainty [this message]
2019-02-04 3:30 ` Eli Zaretskii
2019-02-04 4:10 ` Stefan Monnier
2019-02-04 5:06 ` Phil Sainty
2019-02-03 6:10 ` Paul Eggert
2019-02-03 8:41 ` Phil Sainty
2019-02-03 16:42 ` Paul Eggert
2019-02-04 12:49 ` Ulrich Mueller
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=e966d2eb8265cbda81f9603f86add371@webmail.orcon.net.nz \
--to=psainty@orcon.net.nz \
--cc=eliz@gnu.org \
--cc=emacs-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.