From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#51360: 29.0.50; variable `server-name' initialized too late for use in init file Date: Sun, 24 Oct 2021 18:59:06 +0300 Message-ID: <83sfwq2z3p.fsf@gnu.org> References: <871r4bk2le.fsf@no.workgroup> <875ytm8mis.fsf@no.workgroup> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="35403"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 51360@debbugs.gnu.org, stefan@marxist.se To: Gregor Zattler Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Oct 24 18:01:27 2021 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mefw7-000952-Jf for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 24 Oct 2021 18:01:27 +0200 Original-Received: from localhost ([::1]:37086 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mefw6-0006Jy-Fa for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 24 Oct 2021 12:01:26 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:38914) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1meful-0006JG-0b for bug-gnu-emacs@gnu.org; Sun, 24 Oct 2021 12:00:06 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:57286) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mefuk-0000CH-9x for bug-gnu-emacs@gnu.org; Sun, 24 Oct 2021 12:00:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mefuk-00072P-1P for bug-gnu-emacs@gnu.org; Sun, 24 Oct 2021 12:00:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 24 Oct 2021 16:00:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 51360 X-GNU-PR-Package: emacs Original-Received: via spool by 51360-submit@debbugs.gnu.org id=B51360.163509116426982 (code B ref 51360); Sun, 24 Oct 2021 16:00:01 +0000 Original-Received: (at 51360) by debbugs.gnu.org; 24 Oct 2021 15:59:24 +0000 Original-Received: from localhost ([127.0.0.1]:40599 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mefu7-000718-Ol for submit@debbugs.gnu.org; Sun, 24 Oct 2021 11:59:23 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:41524) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mefu5-00070u-IK for 51360@debbugs.gnu.org; Sun, 24 Oct 2021 11:59:22 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:38344) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1meftz-0008AA-Qa; Sun, 24 Oct 2021 11:59:15 -0400 Original-Received: from [87.69.77.57] (port=1219 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1meftz-0007OO-DU; Sun, 24 Oct 2021 11:59:15 -0400 In-Reply-To: <875ytm8mis.fsf@no.workgroup> (message from Gregor Zattler on Sun, 24 Oct 2021 17:34:19 +0200) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:218145 Archived-At: > From: Gregor Zattler > Date: Sun, 24 Oct 2021 17:34:19 +0200 > Cc: 51360@debbugs.gnu.org > > When emacs is started with emacs --daemon=foo (or > emacsclinet -a "" -s foo [...]) one does not use > `server-start'. > > > Do you have a recipe for reproducing this? > > Have > > (when (equal server-name "foo") (message "My name is foo!")) > > in .emacs and start emacs with emacs --daemon=foo Whatever you do that you need server-name for, can't you do that in emacs-startup-hook? AFAIR, that gets called after the daemon already finished its initialization and provided its name to Emacs, so server-name should be already populated.