From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: Questions about XDG_RUNTIME_DIR and server-socket-dir Date: Mon, 04 Feb 2019 05:30:24 +0200 Message-ID: <83k1igut67.fsf@gnu.org> References: Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="265360"; mail-complaints-to="usenet@blaine.gmane.org" Cc: emacs-devel@gnu.org To: Phil Sainty Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Feb 04 04:30:53 2019 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gqUyD-0016nA-Hm for ged-emacs-devel@m.gmane.org; Mon, 04 Feb 2019 04:30:53 +0100 Original-Received: from localhost ([127.0.0.1]:35313 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gqUy5-0000SP-Hl for ged-emacs-devel@m.gmane.org; Sun, 03 Feb 2019 22:30:45 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:48495) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gqUxz-0000S6-T8 for emacs-devel@gnu.org; Sun, 03 Feb 2019 22:30:40 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:55418) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gqUxz-0006sx-5Z; Sun, 03 Feb 2019 22:30:39 -0500 Original-Received: from [176.228.60.248] (port=1535 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1gqUxy-0006Qv-Pd; Sun, 03 Feb 2019 22:30:39 -0500 In-reply-to: (message from Phil Sainty on Mon, 04 Feb 2019 10:12:50 +1300) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:232950 Archived-At: > Date: Mon, 04 Feb 2019 10:12:50 +1300 > From: Phil Sainty > Cc: emacs-devel@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. 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.