From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Gregor Zattler 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 17:34:19 +0200 Message-ID: <875ytm8mis.fsf@no.workgroup> References: <871r4bk2le.fsf@no.workgroup> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="30920"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 51360@debbugs.gnu.org To: Stefan Kangas Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Oct 24 17:35:38 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 1mefX8-0007oH-7v for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 24 Oct 2021 17:35:38 +0200 Original-Received: from localhost ([::1]:56708 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mefX5-0007Ll-Vt for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 24 Oct 2021 11:35:36 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:36706) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mefWZ-0007LU-2S for bug-gnu-emacs@gnu.org; Sun, 24 Oct 2021 11:35:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:57267) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mefWY-0007cf-GS for bug-gnu-emacs@gnu.org; Sun, 24 Oct 2021 11:35:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mefWY-0006OC-9w for bug-gnu-emacs@gnu.org; Sun, 24 Oct 2021 11:35:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Gregor Zattler Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 24 Oct 2021 15:35:02 +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.163508967324520 (code B ref 51360); Sun, 24 Oct 2021 15:35:02 +0000 Original-Received: (at 51360) by debbugs.gnu.org; 24 Oct 2021 15:34:33 +0000 Original-Received: from localhost ([127.0.0.1]:40580 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mefW4-0006NQ-PT for submit@debbugs.gnu.org; Sun, 24 Oct 2021 11:34:33 -0400 Original-Received: from mout.gmx.net ([212.227.15.18]:52137) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mefW2-0006NC-8J for 51360@debbugs.gnu.org; Sun, 24 Oct 2021 11:34:31 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1635089664; bh=nybMGWSCWhbaKlsnxWDkvrrfWh7w1oBibIsPoSEMTcc=; h=X-UI-Sender-Class:From:To:Cc:Subject:In-Reply-To:References:Date; b=cEUlpKwJ8NksKWaHx9Yz5VnOzMUooxA8XeMZzhdbjE9Yx9S0oQ8uToHqlexQ5GZkc COitr6HRvc3QA5p4TbpyG+URQW2w5z+c6YbvvACI7ByEeBQceIQHlkxXXPiAbbDRcV k96ngYX4P6DSRNU9NWVYoLATNvkGMffOiN/4LC+I= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Original-Received: from localhost ([46.94.150.161]) by mail.gmx.net (mrgmx005 [212.227.17.190]) with ESMTPSA (Nemesis) id 1MbRfv-1nFv8g3nOD-00buGt; Sun, 24 Oct 2021 17:34:23 +0200 In-Reply-To: X-Provags-ID: V03:K1:5VhGkrI6Po2npyswqbs9UwwfQDsXRwGay80UOLeg6V1swe5HS8Z HapGEaevKX/ExO77zir8fz6wb2nc5ed8noey8CqY+OHGwiFnXTaYdfX5DDdWNEZygxNcSYn 0ipzuy6Zexn3ehyh+p9rEaGOU2FmZL/G8mydizr6hAde9HWNtLc23bmh4yVZevnlrS2jWP9 /T2/AFE1sFfDpvVk7KdrA== X-UI-Out-Filterresults: notjunk:1;V03:K0:zAlr260UeQk=:J2l7hW1g9sHzyS40ZRtxMv odOIrkKFs4L2ygCP99/285y086LuUbkHLWpRv7Lz6ixkipHJyvGGlliZSwmoEHrhJnQ6VNy9P EQ/ZM2bfZ0nW3msEdWy3ZMfqjEPD4lltxpUGHotNAYaxPBCFAzNKWEGhXXvDmOYuqu30do6EM DYe0GtwJ5e0FSF4/1BzYhchyxhUDwEGKto2TilY8PgHy1e+2TF1EUTUJlYInKXqG9Lvu7yNrV FSyL/K45Vj3LpyDOZhIrSTNcW5LuhJSkfIzr2KCvlesqKa8aYvjdgFDuEgFDzrFxpaOLlv9cA ojwL9MnwZoD34Q6q8KMXwDlf9bsNouhHa6mG9PoIK5aLjVeWC7Dld8PAIWdI72aAtksiAJAC3 Nhifo0d8o24E2u3YKSe/itqyuzWCkM7iYwCADFKeNXwYDu3tRPqXKn8WRUoNDjJIWRlnjSszf t1EXHUlB6GHP4dZTRB4J3QNBJoMYw1WKwvt5roC4nrMzMQ2q/AD5ts053OkpbO6uPbtSbZEt/ GGcxYpX15QHz4XKOzXtyvM7OQVEwlES3u2zPFfoC+eHBXKIi8t4NV2cgbfOed/KFkR+mQ17tr HbAnP4m3SG8E+c9FdlVL+sl54n9TyEgvJuQElbFXtyu751eH+6z0kh3oVDSwswkck8PCZKw9T bgzpyU+9dbxWsgM/1ABaH+hMj88xez4T5QI+uRBDouXFyfQBxNgpOp9wAMHofet93rLyi4THE /kO/fG16XFGUO+JIXMLpkzlf4OpnrSRK6y0LiK3LeRnCbOneBG/P6dJFEOtFszIwiI9ql1M+ 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:218143 Archived-At: Hi Stefan, emacs devs, * Stefan Kangas [2021-10-24; 05:46]: > Gregor Zattler writes: > >> Warning (initialization): An error occurred while loading =C2=B4/home/gr= fz/.config/emacs/init.el=C2=B4: >> >> Symbol's value as variable is void: server-name >> >> It would be helpful if `server-name' would be initialized >> early enough to be used in init.el in order to enable >> conditional configuration of the server, depending on it's >> name. > > Doesn't this just depend on when you call `server-start'? When emacs is started with emacs --daemon=3Dfoo (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=3Dfoo Ciao, --=20 Gregor