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: Mon, 25 Oct 2021 05:27:37 +0300 Message-ID: <83bl3d3kkm.fsf@gnu.org> References: <871r4bk2le.fsf@no.workgroup> <875ytm8mis.fsf@no.workgroup> <83sfwq2z3p.fsf@gnu.org> <87ee8a2nxm.fsf@no.workgroup> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="5373"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 51360@debbugs.gnu.org To: Gregor Zattler Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Oct 25 04:29:19 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 1mepjj-0001ED-4K for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 25 Oct 2021 04:29:19 +0200 Original-Received: from localhost ([::1]:56698 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mepji-0007r5-21 for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 24 Oct 2021 22:29:18 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:59484) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mepiU-0006sq-1l for bug-gnu-emacs@gnu.org; Sun, 24 Oct 2021 22:28:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:58030) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mepiT-0001OH-Px for bug-gnu-emacs@gnu.org; Sun, 24 Oct 2021 22:28:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mepiT-0004ki-MB for bug-gnu-emacs@gnu.org; Sun, 24 Oct 2021 22:28:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 25 Oct 2021 02:28:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 51360 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: moreinfo Original-Received: via spool by 51360-submit@debbugs.gnu.org id=B51360.163512887318252 (code B ref 51360); Mon, 25 Oct 2021 02:28:01 +0000 Original-Received: (at 51360) by debbugs.gnu.org; 25 Oct 2021 02:27:53 +0000 Original-Received: from localhost ([127.0.0.1]:41343 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mepiK-0004kK-Vk for submit@debbugs.gnu.org; Sun, 24 Oct 2021 22:27:53 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:33886) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mepiJ-0004k8-By for 51360@debbugs.gnu.org; Sun, 24 Oct 2021 22:27:51 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:51876) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mepiD-0001CS-Rj; Sun, 24 Oct 2021 22:27:45 -0400 Original-Received: from [87.69.77.57] (port=4131 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 1mepiD-0002Lu-DX; Sun, 24 Oct 2021 22:27:45 -0400 In-Reply-To: <87ee8a2nxm.fsf@no.workgroup> (message from Gregor Zattler on Sun, 24 Oct 2021 22:00:21 +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:218244 Archived-At: > From: Gregor Zattler > Date: Sun, 24 Oct 2021 22:00:21 +0200 > > > 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. > > the idea is to initialise the emacs daemon depending on it's > server-name. Therefore doing it via emacs-startup-hook is > somewhat counter-intuitive Sorry, I don't think I follow: what has intuition got to do with this? And what do you mean by "initialise the emacs daemon"? -- that happens out of your control, in the internal Emacs code. > But you are right that works. Thanks. So does this mean your problem is solved?