emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Questions about XDG_RUNTIME_DIR and server-socket-dir


From: Eli Zaretskii
Subject: Re: Questions about XDG_RUNTIME_DIR and server-socket-dir
Date: Mon, 04 Feb 2019 05:30:24 +0200

> Date: Mon, 04 Feb 2019 10:12:50 +1300
> From: Phil Sainty <address@hidden>
> Cc: address@hidden
> 
> 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.

You can always restart the server with another --eval, right?

> My recollection is that I couldn't find any way of doing something
> like that.

Only because yours is a very convoluted arrangement, not typical of
"normal" usage.  Defcustoms are supposed to be customized from init
files, not controlled by environment variables from outside of Emacs.

> (I do still think a EMACS_SOCKET_DIR environment variable would be a
> beneficial addition, as the current code doesn't facilitate this.)

We don't need a variable to set a directory when we already have one
for setting the file name, which could include leading directories.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]