From unknown Tue Jun 17 01:48:44 2025 X-Loop: help-debbugs@gnu.org Subject: bug#51360: 29.0.50; variable `server-name' initialized too late for use in init file Resent-From: Gregor Zattler Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 23 Oct 2021 18:40:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 51360 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 51360@debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.1635014384486 (code B ref -1); Sat, 23 Oct 2021 18:40:02 +0000 Received: (at submit) by debbugs.gnu.org; 23 Oct 2021 18:39:44 +0000 Received: from localhost ([127.0.0.1]:37286 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1meLvk-00007m-Ew for submit@debbugs.gnu.org; Sat, 23 Oct 2021 14:39:44 -0400 Received: from lists.gnu.org ([209.51.188.17]:36638) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1meLvi-00007f-OQ for submit@debbugs.gnu.org; Sat, 23 Oct 2021 14:39:42 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:57942) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1meLve-0001cm-So for bug-gnu-emacs@gnu.org; Sat, 23 Oct 2021 14:39:39 -0400 Received: from mout.gmx.net ([212.227.17.22]:41349) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1meLvZ-0002mH-GY for bug-gnu-emacs@gnu.org; Sat, 23 Oct 2021 14:39:38 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1635014369; bh=WavrBIcRVpTtOKKMnADzC/RfAa+2D2Rx6z1FtwjsJdE=; h=X-UI-Sender-Class:From:To:Subject:Date; b=ji1nb5O1PVnEyCGngliyBdMHIlfQnq9PDKx8bTI89aOz5Pm8+Ll5rbGYwoYeD6uI9 Z9BBJl3cda/qIu/u9xhXQaBHcfKN6jH0/EsjxexE04GGs7/DvmXhpSz5bME5zpiHyW ajtqmHZQoClcrsioFPRtbaFPFFUrUYvkm5ZKBE74= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from localhost ([46.94.150.161]) by mail.gmx.net (mrgmx105 [212.227.17.168]) with ESMTPSA (Nemesis) id 1N63VY-1ml2uP1mTw-016T12; Sat, 23 Oct 2021 20:39:29 +0200 From: Gregor Zattler Date: Sat, 23 Oct 2021 20:39:25 +0200 Message-ID: <871r4bk2le.fsf@no.workgroup> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Provags-ID: V03:K1:50OEFRVWr5tmKa0E65B7gvPsfg32suJjTUSb/oOzi+5yMmxdXoF kEkQKvQLYSooLM4BGgPvlnCav9vEI/TjBwfxThM28Ms12Sz5IGNLihSt/N4DZLjOnu0EM7l p7KHp/L7JNOk1BEKYbw3U5d+RWfvxXhofBToJy25I7fYaXH3adY+IBxrxLN2Y241bMdqQuZ 8q9UI8XkK2haIZG8dV0Gg== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:YinwfUwnTFs=:UbYHe/M40jw9a2wXw6AlyM 4iprkbTVr3SgG/zhAsZeG6p0TpES7s8HTHO6PDFr1T3+yN0iXSGV7Kbnvr4Qq8ztQMjTzinB6 44Q6iu7MyoqPrgwUTUIz3R3e/4herPpEIAZTyYHdYz1pOUpNn43iGIuT7MxsHgzB/2idEqTVF 9xz/rLiT433sPAEEBl+VCcjeSKSkjfGkcyq9FTIvTn8LJY1yfDhJcPKC8e2oOYXPZYzN87oDE XRznJHZghjvxMLnFDYZUA015k7BwChYwARUuDrHenpt+n6ejAmEjRGifnX1W7qyUd0ljqHSUK wUHBOTNS0EzyOJyBaeV5bGeN2PoDPYzGsNDvuIBzllKvZnY+C1U/XSQLswk/AG42wb4Xv463D HRz6LQBN/tYr28ruMsDKehbYpmEF9OH5YjTxuB/eAD5qWjbQaJOvnChNQpMu82jcOYJtZleGX DXmQFbe93s6XoFFKRwj46IDgoR6d6tWifCVEOdJizsbJymmLmAMOOgqDdM+Imf4tijwxWPMQU ZawxO+rSPUig5MCxbhBt6HaB+mmeMwFvIzfK/6aCA+XjEG0qPHvNepx8EJ83s9Z+ixkA/3TRF IDYpBv5+IeLXow5uhyHwR1HZLIFNQthhJmeMLbDpPrTYHiyOyn2/Qe/Jp9cOzpPUoh1Uf+Uc7 twNp0SlmIEzgQbvALCvibLD24Rqbb7jx5q9iR19uWjHwIHV2l0gKcPgcdo7Lg5y4nwahpeK/t f+F3yedPd5PKgSCu3Vwee7RB/iUn8SVasOMB2eJRGgnXJIVro5Fy41X2GpYLTKjTfT64OWDNk 1RrlbGHGPdkGMfEJ+cao/UTFrUcfWF9k0gYTe4GJzniG6F6P8L875+ZaUuZYimCpP5R3FBxVD MmEVhpnSy/j4emeylYnMBXbF3s6/MusXDdMM8r2t7+yl63XxBpvVUaQp9qKcEJ2kEcET9HLDR N/2QyPbcVoh59bF639Pxd/fevfxjXSJCIVzY8uXXUwrcHR6PvYlq34Nwfe3dAbRtAyOlLl+5r n4qatfRgR9aqmGX0i/aJehDX5X068D9UZz2py1zm2kcqanPU0G6nxO6YB4bJLIipyQ== Received-SPF: pass client-ip=212.227.17.22; envelope-from=grfz@gmx.de; helo=mout.gmx.net X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -0.1 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.4 (--) Dear emacs developers, if emacs is started as a named daemon like this: `emacs --damon=3Dfoo' or like this: `emacsclient -a "" -s foo [...]' the variable `server-name' is initialized with the name "foo" but too late to be used in init.el: Warning (initialization): An error occurred while loading =C2=B4/home/grfz/= .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. Thanks for your attention, Gregor From unknown Tue Jun 17 01:48:44 2025 X-Loop: help-debbugs@gnu.org Subject: bug#51360: 29.0.50; variable `server-name' initialized too late for use in init file Resent-From: Stefan Kangas Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 24 Oct 2021 12:47:02 +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: To: Gregor Zattler Cc: 51360@debbugs.gnu.org Received: via spool by 51360-submit@debbugs.gnu.org id=B51360.16350796045438 (code B ref 51360); Sun, 24 Oct 2021 12:47:02 +0000 Received: (at 51360) by debbugs.gnu.org; 24 Oct 2021 12:46:44 +0000 Received: from localhost ([127.0.0.1]:38112 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mectf-0001Pe-U7 for submit@debbugs.gnu.org; Sun, 24 Oct 2021 08:46:44 -0400 Received: from mail-pf1-f179.google.com ([209.85.210.179]:34619) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mecte-0001PS-H6 for 51360@debbugs.gnu.org; Sun, 24 Oct 2021 08:46:42 -0400 Received: by mail-pf1-f179.google.com with SMTP id d5so8134221pfu.1 for <51360@debbugs.gnu.org>; Sun, 24 Oct 2021 05:46:42 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:in-reply-to:references:user-agent :mime-version:date:message-id:subject:to:cc :content-transfer-encoding; bh=S3J5Hf+/lxFKAT/OSEGUeSkSu9rVljtxgt2LhsQaOq0=; b=4YJs3AOELt19TZiVdEv1hpDVJOJfFXcPRGmukjNTUzpO4oQEI/LA3pr7WGmqo5XELW TI8+Eo5DLyU7v2D6vgD6SBUfdgAuJUI8XTisxEqclhkgI+hRk14K0KWlDx0xN2bPmr4s PuzQT14YJitneYrInU+NuZTrT93NVQt5XBH40ttOIm19tDKIAnWbqTHVZJCiA67+aXew jI2s6wgg7h9A3seYZNjIfd8aQLY9Xosu2I1mGwVwRBax5CgpuQdEdso1YLtYVr8wWIqm zwwxupAFAWkfCnnsuCzMJs4UA6Teh4cGscL5b8iB2JZLM2ukvbCs5tBEjvaecOvMoU3L yT1g== X-Gm-Message-State: AOAM532M4Ag/WoA7zrAaRbmtoOPjXUyzdlo6wFnPo5bOQ/NZGbS0dqpx m7RGg1yU4Wgmm16UohCBOej9Y/vYXGJ7mB+dX1Y= X-Google-Smtp-Source: ABdhPJwWyVnAwR0oGcldXyqLP2S4Q54ZtTE9dTXLbXihJB3Ke2AT1r9a2dipq7R4m10Xo/Tat6yjQj4hGHAt0w2JzYk= X-Received: by 2002:a63:370c:: with SMTP id e12mr8897018pga.359.1635079596835; Sun, 24 Oct 2021 05:46:36 -0700 (PDT) Received: from 753933720722 named unknown by gmailapi.google.com with HTTPREST; Sun, 24 Oct 2021 05:46:36 -0700 From: Stefan Kangas In-Reply-To: <871r4bk2le.fsf@no.workgroup> (Gregor Zattler's message of "Sat, 23 Oct 2021 20:39:25 +0200") References: <871r4bk2le.fsf@no.workgroup> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) MIME-Version: 1.0 Date: Sun, 24 Oct 2021 05:46:36 -0700 Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.5 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.5 (/) Gregor Zattler writes: > Warning (initialization): An error occurred while loading =C2=B4/home/grf= z/.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'? Do you have a recipe for reproducing this? From unknown Tue Jun 17 01:48:44 2025 X-Loop: help-debbugs@gnu.org Subject: bug#51360: 29.0.50; variable `server-name' initialized too late for use in init file 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 X-GNU-PR-Keywords: To: Stefan Kangas Cc: 51360@debbugs.gnu.org Received: via spool by 51360-submit@debbugs.gnu.org id=B51360.163508967324520 (code B ref 51360); Sun, 24 Oct 2021 15:35:02 +0000 Received: (at 51360) by debbugs.gnu.org; 24 Oct 2021 15:34:33 +0000 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 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 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 From: Gregor Zattler In-Reply-To: References: <871r4bk2le.fsf@no.workgroup> Date: Sun, 24 Oct 2021 17:34:19 +0200 Message-ID: <875ytm8mis.fsf@no.workgroup> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Provags-ID: V03:K1:5VhGkrI6Po2npyswqbs9UwwfQDsXRwGay80UOLeg6V1swe5HS8Z HapGEaevKX/ExO77zir8fz6wb2nc5ed8noey8CqY+OHGwiFnXTaYdfX5DDdWNEZygxNcSYn 0ipzuy6Zexn3ehyh+p9rEaGOU2FmZL/G8mydizr6hAde9HWNtLc23bmh4yVZevnlrS2jWP9 /T2/AFE1sFfDpvVk7KdrA== X-Spam-Flag: NO 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+h W31UMR4R1N8tT2VHgkcuZGhlKHa7/eIpNBIIP8p40AkimcdnUTm8FNA/P/zQ8FQL0KGMc9Wa4 XU/PuIP/95sHKXc0LeQ3c41hrz7uxV97LBlWO1ueb5K6Y6XaojP90xVH3HAn0lSobf8Gq6mwG G3q4XA84x4SyPNKiiMIL+AItQEYGBfb92avp5AE9SGTBjgbh6wexC3rdGn6glh+le5K8eiBil sACmrhLH0eSwzyweWpzt0Df3hsKIvY9NMb6yWMrAp+TfJXzrt1BlR7Lu91THRsqjfQ== X-Spam-Score: -0.7 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) 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 From unknown Tue Jun 17 01:48:44 2025 X-Loop: help-debbugs@gnu.org Subject: bug#51360: 29.0.50; variable `server-name' initialized too late for use in init file Resent-From: Gregory Heytings Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 24 Oct 2021 15:46: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: To: Gregor Zattler Cc: 51360@debbugs.gnu.org, Stefan Kangas Received: via spool by 51360-submit@debbugs.gnu.org id=B51360.163509032625543 (code B ref 51360); Sun, 24 Oct 2021 15:46:01 +0000 Received: (at 51360) by debbugs.gnu.org; 24 Oct 2021 15:45:26 +0000 Received: from localhost ([127.0.0.1]:40585 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mefgb-0006dv-Sy for submit@debbugs.gnu.org; Sun, 24 Oct 2021 11:45:26 -0400 Received: from heytings.org ([95.142.160.155]:33140) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mefgZ-0006dl-4l for 51360@debbugs.gnu.org; Sun, 24 Oct 2021 11:45:25 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=heytings.org; s=20210101; t=1635090322; bh=FWc26NPOPrCVWZKo0OxfnmSuZJlV8lS9yowCPbG7MCM=; h=Date:From:To:cc:Subject:In-Reply-To:Message-ID:References:From; b=ThYV+PO7946Cltn60u/HAfQm1nlUvdZJdywaKD69/td58MWiW6VDmWh+ZFc185fJQ M5TpkMTh9jpkwNBW1kN+AjdV4oB6hIF7L0a2Q7LyvELUl3Qdl25w1lBfMJiXFvn5+o 2D2b3gB1IkZ7BTW2M2NfIsKcwRKl2smNL4Te0TqTUzAEZH68WD5wSYcTwqqiEIYX1a 59wl9MWFElFuSslkM7paSbt3koecWk3wYVT2/rGYvhvztesq/sRAILdxaaKqtyGQN5 lZTmrD3sGPBDMRELenCe2bgrOg+bHviqoyRxy/UAM84GDT9BRtzM7LU61vHdBCGhVV vCFSZ6aHqOyjw== Date: Sun, 24 Oct 2021 15:45:21 +0000 From: Gregory Heytings In-Reply-To: <875ytm8mis.fsf@no.workgroup> Message-ID: <90ba36dccc2153e91da6@heytings.org> References: <871r4bk2le.fsf@no.workgroup> <875ytm8mis.fsf@no.workgroup> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="K0v2RBKChZ" X-Spam-Score: -0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) --K0v2RBKChZ Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable > > Warning (initialization): An error occurred while loading=20 > =C2=B4/home/grfz/.config/emacs/init.el=C2=B4: > > Symbol's value as variable is void: server-name > You should (require 'server) before referring to server-name. None of the= =20 defcustoms in server.el are autoloaded. --K0v2RBKChZ-- From unknown Tue Jun 17 01:48:44 2025 X-Loop: help-debbugs@gnu.org Subject: bug#51360: 29.0.50; variable `server-name' initialized too late for use in init file 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 X-GNU-PR-Keywords: To: Gregor Zattler Cc: 51360@debbugs.gnu.org, stefan@marxist.se Received: via spool by 51360-submit@debbugs.gnu.org id=B51360.163509116426982 (code B ref 51360); Sun, 24 Oct 2021 16:00:01 +0000 Received: (at 51360) by debbugs.gnu.org; 24 Oct 2021 15:59:24 +0000 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 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 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 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 Date: Sun, 24 Oct 2021 18:59:06 +0300 Message-Id: <83sfwq2z3p.fsf@gnu.org> From: Eli Zaretskii In-Reply-To: <875ytm8mis.fsf@no.workgroup> (message from Gregor Zattler on Sun, 24 Oct 2021 17:34:19 +0200) References: <871r4bk2le.fsf@no.workgroup> <875ytm8mis.fsf@no.workgroup> X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > 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. From debbugs-submit-bounces@debbugs.gnu.org Sun Oct 24 13:51:51 2021 Received: (at control) by debbugs.gnu.org; 24 Oct 2021 17:51:51 +0000 Received: from localhost ([127.0.0.1]:40724 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mehex-0003dr-2r for submit@debbugs.gnu.org; Sun, 24 Oct 2021 13:51:51 -0400 Received: from quimby.gnus.org ([95.216.78.240]:46392) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mehev-0003dc-BJ for control@debbugs.gnu.org; Sun, 24 Oct 2021 13:51:49 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Subject:From:To:Message-Id:Date:Sender:Reply-To:Cc: MIME-Version:Content-Type:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=bx3bbTr4O8dvq1dxYerc5UFVNJaWhZ82mK5PI4SXXR8=; b=iT4uu2u0z82S/bhYvvrtA9D94W P4a3hn3H020SdN0kXS/ilSAN3SYtO5FTaF6hhnWagwG4a3tRpJTPtfI1Dq0oq3OqLeVIrT5nR2N1x 8mf9hTnduE9PWmCDN9S7L56a3ntU2OlyKv+VO/0dF1/nrO9FqJUNtDyDUQpRNdOCzZyw=; Received: from [84.212.220.105] (helo=elva) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mehen-00012j-0R for control@debbugs.gnu.org; Sun, 24 Oct 2021 19:51:43 +0200 Date: Sun, 24 Oct 2021 19:51:40 +0200 Message-Id: <871r4a71lf.fsf@gnus.org> To: control@debbugs.gnu.org From: Lars Ingebrigtsen Subject: control message for bug #51360 X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: tags 51360 + moreinfo quit Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) tags 51360 + moreinfo quit From unknown Tue Jun 17 01:48:44 2025 X-Loop: help-debbugs@gnu.org Subject: bug#51360: 29.0.50; variable `server-name' initialized too late for use in init file Resent-From: Gregor Zattler Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 24 Oct 2021 19:44:02 +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 To: 51360@debbugs.gnu.org Received: via spool by 51360-submit@debbugs.gnu.org id=B51360.16351045891751 (code B ref 51360); Sun, 24 Oct 2021 19:44:02 +0000 Received: (at 51360) by debbugs.gnu.org; 24 Oct 2021 19:43:09 +0000 Received: from localhost ([127.0.0.1]:41008 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mejOf-0000SB-At for submit@debbugs.gnu.org; Sun, 24 Oct 2021 15:43:09 -0400 Received: from mout.gmx.net ([212.227.17.22]:60927) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mejOd-0000Rf-9b for 51360@debbugs.gnu.org; Sun, 24 Oct 2021 15:43:07 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1635104581; bh=Nryvewsk76WhLvzH4vjXZ09vEaDlJFdGCc3sGa6nmbI=; h=X-UI-Sender-Class:From:To:Subject:In-Reply-To:References:Date; b=ikiuKx6P2jv7iuiHnBn4cpwFLpsVExlPhQGArpe+yXMyLMlM33J4cujB3Bwt81Gyr IYcWlqeHnzBt5YWXlBR9E6tdEMx6UIBbTF6Yw6pTWSejv7CgtmUIwoiQSbi32DA9al avP/daxs8H0sj1fHW1Ech3HGEFqzJeRiejsIkt5g= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from localhost ([46.94.150.161]) by mail.gmx.net (mrgmx105 [212.227.17.168]) with ESMTPSA (Nemesis) id 1M2wKq-1mfprE3q9c-003J7Q; Sun, 24 Oct 2021 21:43:00 +0200 From: Gregor Zattler In-Reply-To: <90ba36dccc2153e91da6@heytings.org> References: <871r4bk2le.fsf@no.workgroup> <875ytm8mis.fsf@no.workgroup> <90ba36dccc2153e91da6@heytings.org> Date: Sun, 24 Oct 2021 21:42:57 +0200 Message-ID: <87h7d62oqm.fsf@no.workgroup> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Provags-ID: V03:K1:AKiWhISp7//n5A5a8AbR3Nt37W8xiyhFsVE3H5rO9rTxK4xV/MV u9jvFUb6jCKOfBtSXVaxbrYXf0+0laic9rat3g6bZ1IKEl5GLDhae3xiyH5i7oNj5sUN0y3 QUfqDp0lbsocxSwhXyDpMUnd7FVWBpSjAPF0k5qRWg5/JM1tepS0+PqnWHbmZMSCb5O1RBK gXxIMCY7WOsWKqXR1wKIA== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:1sp+ec4y0+w=:pR7E2rg1OuBugQqeIrnpxT UIX7p/p5oyYpTgZWON9mZhr0Agyi+tyNk3RrkfNFC2PmMvMQbrGvlPF5aP6YcMBDOBOQuAUn+ pvTi+Q4aWx2HPUtCMZBL1QMOOwz9AOmGt1Z3lbXPEsnOuZmYhwHI93jkdoJQQM7sY3nG6gZuN +fnTp2naxRUA+iwSMv8NPjaIH7qMc+e1kfcEb1LoX3VdhUerwHHcoh4WXsuE4bQ2TrimBbTR/ KsRPgFOLNk3nm5IfPNk3O4hvXNAayoHphpGmM8cUKsmiqMK0ZW8Kn2B4X49PCACMavfaQZV5l TQHn+uXVAg06GgNQFdxTQgDGXaOX9m3r4veh9SpgaItNTKYJ9HJmrH1HzkNSjZRkH4jpEApk2 XPsbu+6iBI6AAM9JbKlStj3EjQV2WBpQ3xbZClZ+AGKzgztP4Z7m8Pb/WgV6yBV429Fak1ohs lTUBXKB1mmtQ6+Hgfvga7zwPKOHiN6HSpwr3JgBA/J6uW8Dnim/LFLFuUPZOGym+h3tLQQCW8 XAdAC4Mi/e+c1nfguifbha0CkEIEzbbId5pNSesb8vC7ejqdLOrGhl5xV3pwEAyOHmAvN88Ix vLWDSf4jdSyUwEDHRvdyXS2BwOMBqKtMnM6/ARa17ete09p+S4zzOVYYh3SzmQ5tqyvq5Zjts TbSZr0RYqiv38K9LLSzohSXcFVacbN4KUVN6gz5mqZuSh9WM+sJllmWxytW8eYeDK9kqhTG4o ArceuIQi7M90InMeEJDuPU2FJsBc+n2fLU44Ev+Eatlv+ZutF/VdLskk8aimcy0rsRFUgFfPA pjpSNohI8TjAqeQqwR5xUHKDsX4Q/KicKllvqzMUDqsiSzusiaD5xtW/2QykJeV3KvYqoZZCj kDZuy1Oar//mgieZm8gAfso2/vxRgSd9/EX9xEDAV4T0Gmi4oqkQ8MBx04AyneOUCiIRHJVWB 7vUOYWQNZloEjm86pLYNJRMTtMd1qmKeXGvlhUf2/aX1/pZhPdYBzP/T4g3Fj2aHMAe2lhzu3 1WfRn0ifrHk3cibU4IWOXxmp6r5czFuoIRJ+q8JsmMXratCycmtkCxIsUxfoIJKCCw== X-Spam-Score: -0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Hi Gregory, emacs devs, * Gregory Heytings [2021-10-24; 15:45]: >> Warning (initialization): An error occurred while loading=20 >> =C2=B4/home/grfz/.config/emacs/init.el=C2=B4: >> >> Symbol's value as variable is void: server-name > > You should (require 'server) before referring to server-name. None of th= e=20 > defcustoms in server.el are autoloaded. thanks. Requiring server prevents this error, but `server-name' is not set to the command line value, though: ~$ cat ~/.emacs (require 'server) (when (equal server-name "foo") (setq greeting "My name is foo!")) ~$ emacsclient -a "" -s foo --eval '(message greeting)' emacsclient: Should XDG_RUNTIME_DIR=3D'/run/user/1000' be in the environmen= t? emacsclient: (Be careful: XDG_RUNTIME_DIR is security-related.) emacsclient: can't find socket; have you started the server? emacsclient: To start the server in Emacs, type "M-x server-start". Starting Emacs daemon. Emacs daemon should have started, trying to connect again *ERROR*: Symbol's value as variable is void: greeting Ciao, --=20 Gregor From unknown Tue Jun 17 01:48:44 2025 X-Loop: help-debbugs@gnu.org Subject: bug#51360: 29.0.50; variable `server-name' initialized too late for use in init file Resent-From: Gregor Zattler Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 24 Oct 2021 20:01: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 To: 51360@debbugs.gnu.org Received: via spool by 51360-submit@debbugs.gnu.org id=B51360.163510563411875 (code B ref 51360); Sun, 24 Oct 2021 20:01:01 +0000 Received: (at 51360) by debbugs.gnu.org; 24 Oct 2021 20:00:34 +0000 Received: from localhost ([127.0.0.1]:41031 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mejfW-00035T-C5 for submit@debbugs.gnu.org; Sun, 24 Oct 2021 16:00:34 -0400 Received: from mout.gmx.net ([212.227.17.21]:36091) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mejfT-00035E-W0 for 51360@debbugs.gnu.org; Sun, 24 Oct 2021 16:00:33 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1635105625; bh=LbTCt8drp3ive1pYEM9zy3Hm0jAsXz33yPh1CGfwIIw=; h=X-UI-Sender-Class:From:To:Subject:In-Reply-To:References:Date; b=cWMGpzzWJ67klbMFKdUMIHsYzK47+dQzfaBmbJpReFxjA/T8+ArkGd1GuC5w4WSmf h1x2xsKT+61aHU8S7lp4+HK9vWNryBAYqUAvfmFZ6Kn/JHdUDExnMAMmDnL7gdIOz1 oUKILFk9d59Fh+zTH1F6E9pzPXa8yLUno4IAcT2Q= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from localhost ([46.94.150.161]) by mail.gmx.net (mrgmx105 [212.227.17.168]) with ESMTPSA (Nemesis) id 1Mqb1c-1n0XtZ2ZTk-00may6; Sun, 24 Oct 2021 22:00:25 +0200 From: Gregor Zattler In-Reply-To: <83sfwq2z3p.fsf@gnu.org> References: <871r4bk2le.fsf@no.workgroup> <875ytm8mis.fsf@no.workgroup> <83sfwq2z3p.fsf@gnu.org> Date: Sun, 24 Oct 2021 22:00:21 +0200 Message-ID: <87ee8a2nxm.fsf@no.workgroup> MIME-Version: 1.0 Content-Type: text/plain X-Provags-ID: V03:K1:UgEAeEMOEsnhP1SYMIUVjKekzcnyELqumQ9G1NJMBhZHbzgI66I pUPU/TlIc/+JEqrFBpQkBZ4hl8eCskzcAK/CuX45n8m6HxmT6UbrsUSLoXD7FCjNpJijre6 dXhtDTqEm8GHTQr9ZX9gPL4vAnmtArR/dgd629Z3J2ngCkX+DthA4hhVYGB/FRATiqRzvcJ czIUTGH0Y206hol+KkwBg== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:JRJSsFtWlUU=:73jvLyGSbyL1eYb0ete2SV QfQ24/4JrQChnUGFlpwh9Oq4ltzVDqEImm40NUostaWmsgsVlJ+1YMuQgK/ttAHDLOqz8En5N hRBne7r6vToBe5UPC4PcaF2ckLBDUvwf9+ieWKJgsCfdjqxdJdhKmTyVmf7NeARHAGU88/haa y6lWGvoNFbCZX5CyJzhlS0p2p65Aqoz3VRrXVA5YKFH2rLs8bZjnmsoDWIGckeSJIyoBp1OIT FFck3Ssze+g9hDM0oCwuDZCGbD9O28g0AoqaAk/eIaVg4XH9yFov6JT6inrXkLVrFcO3NJn/6 9vpLbZuLifLJJF3cA6JmF7oJHKDdKfdXBeMM5NS9clFQ/0JxI9Mhw3jTgb4W7erM8cGB2q+sh zhTuLHOIEKXjlh13RLqG82w0iK7gwjzJPeTBu9dY5CLr5cgOcoKP/SAgsdwMu/Pn9GmndOph6 fvf8q+g002sWUdFQgCnSBKZROfKCR+jEIHbC0l1mUS+CxFwbP2aSvz99CeQqv2fQvbkbd3+PZ d2887JdSahlLgHzYq3dcOwYIgeU8vDJHzALB045BOUX+R59bmvLpp4xiUTA30Eb2FixS4nAHi rptEgkDwjxypp9dv+qnTWwtql8jIwUPs8/HguHcwL6v889LESxjC7SMTrmZIPDLxdh9lFIC8q c4rmKcpTf/I59bWV8XnWkbU+Dzg+0rv4yeMJBcs+GFGXxb/ZNUlxYpVFtWio2BCGGMpxUjEjs CdpeEWDr5iJSzpZIAExnvjL94flx90ImfnNBJXaVDegi15f0Qk4kNJsIXp48MCXLI5fE7m07i u4ZbQa39hxvHGu2vDPzHk7zP2zugtmPie2/GRW5M1M/StoBV6sVQiw9GpUqeOLhikl5f2FJoi p/HfPzftuWmiYVdLTiNiqJTVh5WxF+lzIboGd9DCXEtt/F+R0vpeOSt4uGskngrtRHubg1A3n GTx4x2iaHVaXwBugbOlAjQSTLsr30NglyQMHAj2L/kuEXFRHpHRWL6lAKvS3jV30I7DqSalup xRG8zCwuCeVsNqy/eYW1ND7RbLI3YeJRBN1AKnonh5E7ZiTwwMXDkBiQ8QfUYWFLnw== Content-Transfer-Encoding: quoted-printable X-Spam-Score: -0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Hi Eli, emacs devs, * Eli Zaretskii [2021-10-24; 18:59]: >> From: Gregor Zattler >> Date: Sun, 24 Oct 2021 17:34:19 +0200 >> Cc: 51360@debbugs.gnu.org >> >> 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 > > 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 But you are right that works. Thanks. Ciao, =2D- Gregor From unknown Tue Jun 17 01:48:44 2025 X-Loop: help-debbugs@gnu.org Subject: bug#51360: 29.0.50; variable `server-name' initialized too late for use in init file 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 To: Gregor Zattler Cc: 51360@debbugs.gnu.org Received: via spool by 51360-submit@debbugs.gnu.org id=B51360.163512887318252 (code B ref 51360); Mon, 25 Oct 2021 02:28:01 +0000 Received: (at 51360) by debbugs.gnu.org; 25 Oct 2021 02:27:53 +0000 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 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 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 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 Date: Mon, 25 Oct 2021 05:27:37 +0300 Message-Id: <83bl3d3kkm.fsf@gnu.org> From: Eli Zaretskii In-Reply-To: <87ee8a2nxm.fsf@no.workgroup> (message from Gregor Zattler on Sun, 24 Oct 2021 22:00:21 +0200) References: <871r4bk2le.fsf@no.workgroup> <875ytm8mis.fsf@no.workgroup> <83sfwq2z3p.fsf@gnu.org> <87ee8a2nxm.fsf@no.workgroup> X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > 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? From unknown Tue Jun 17 01:48:44 2025 X-Loop: help-debbugs@gnu.org Subject: bug#51360: 29.0.50; variable `server-name' initialized too late for use in init file Resent-From: Gregor Zattler Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 25 Oct 2021 08:03: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 To: 51360@debbugs.gnu.org Received: via spool by 51360-submit@debbugs.gnu.org id=B51360.163514894818519 (code B ref 51360); Mon, 25 Oct 2021 08:03:01 +0000 Received: (at 51360) by debbugs.gnu.org; 25 Oct 2021 08:02:28 +0000 Received: from localhost ([127.0.0.1]:41568 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1meuw8-0004od-Fe for submit@debbugs.gnu.org; Mon, 25 Oct 2021 04:02:28 -0400 Received: from mout.gmx.net ([212.227.17.22]:42465) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1meuw7-0004oQ-A6 for 51360@debbugs.gnu.org; Mon, 25 Oct 2021 04:02:28 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1635148941; bh=umYrAxL0c9xZLhgTk0kkhpJti4tZeAdfhKY1LAtko3Y=; h=X-UI-Sender-Class:From:To:Subject:In-Reply-To:References:Date; b=Gzvmq0nqMUgKzVyEiMz50VZiN1UMfVbT/RL5k/hz/FIRO3PcokGtIliUqBe0JWdR+ fLbDnPskVC8J5srkqw0qLkwv0VTLGQ0A/uPjwa482is8ifofV0CB+4kyYiGj2JyEnf gY1PCR8AGE9Mg/Q2kLjHCwd/xo8cxy34LNUvq8BQ= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from localhost ([46.94.150.161]) by mail.gmx.net (mrgmx105 [212.227.17.168]) with ESMTPSA (Nemesis) id 1MSKy8-1mGcnE3iS8-00SiJL; Mon, 25 Oct 2021 10:02:20 +0200 From: Gregor Zattler In-Reply-To: <83bl3d3kkm.fsf@gnu.org> References: <871r4bk2le.fsf@no.workgroup> <875ytm8mis.fsf@no.workgroup> <83sfwq2z3p.fsf@gnu.org> <87ee8a2nxm.fsf@no.workgroup> <83bl3d3kkm.fsf@gnu.org> Date: Mon, 25 Oct 2021 10:02:16 +0200 Message-ID: <87pmrto7lj.fsf@no.workgroup> MIME-Version: 1.0 Content-Type: text/plain X-Provags-ID: V03:K1:ywsC5gxubU319VPKN24z9IFIGgrLwsv15+kcPnB1Q8AB93vWuj6 1xqSTmlqMCwZVe8lah41D378ghZRGryS4dX11cOX1T4/2SwZQ6+OZB6VXIBOikhFvrYnB2n d8/Tr/V1OxBjh5Z7M/f6p2sixmCsmIqkPh7IWVc0uwS9vo2oC8IV/V0Y3FkcqvyKmqvHQFZ uBnKkzipaMOKhAtNRz7gQ== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:Z4DWyXKhH0o=:yuqoLh34BeZNKY/GqqpVgr DEWXzCZQSs/JEKkyMtDIbDMsVMIbJro2xn+szWwCAPzpBWMcFNA6kW24uFY6osP2w0IpnbjZN AoH2+lwSY4iTTpJZkGw9QSCZgFhzmhTxPA7c6MX99Gm3cGG+fDpbyPB/3bsb5mcrTN+oplSEf QnFmz2y0Cil4n4KDCypRXt3xo8NqFjm4r8bA7dK+kxPX9Yue/1wim7/yv553PfFwwomV1kLzu XNDb3vL/u/9y3Wb0A/j3d0oQgFn4NoDHaIV9OiDYAGMoU4sWMKV0/x7oNdGNl7KO6kUgatvv4 mslO5jdL0N1BTyKzv5qbT6GYIvwlVf7Jp7dvupvQjQgF5A+m2i1bI8zlY1dxUUUGU3stsYPKz KjY7TrkVTLXhUbiHzpaat21I8ZPh4yJuhpVc4ZP8ReYACgO/CuVccpvg0gnYjhXLZuP3L5EkJ fmAKoe5Htfwuye+2JyG1629x3xoYcoCRfOGL1S+1FqoKux3QsmPjJP+TR6umUBQv9uY4CVgJS 5+hHw0d4gUF82IW70tlYqXtuG3AHrncjqPyf9bf4vb6htzdcoMHOsUwbpV1cF1ZKpPPtyoqNs f54FoHYbQdNJo9XMBGrG8nqLZrodFptzLRrLu/o3HlE3vdfDAF37wEgzgnQQtgy/HEeWGFPig NxbW8joMdyxhI9AjGwe1MJcvndzzzoCd8V2JlCjXBanm2UsELHplWiOg836XTCtaLxteYXdfo lbaaOKGfZS2AoCedJHJeKxOHjm1Pdzf5mcLtFMNJldMlrEAnWNaxFIfKSipCpXNGfs4HaWoB4 Wy/ZMuMnhl/D2XfW2ZaAbVCOotb89Z2AB8KzzNbDETLZ6yA/WTXoOXVbrt3XOh0FYAkgPlQ4x t7VYmdtRujCyz3KW04WzBg849XY+gQD7Ju7QSdrc2lXoycbcbCiTLF9eAYOmK+OWILFHo2nXK b8zxO/qX7vmHRFjhALR9i9P9qUkN5RRDr0jNB1r6TpBu4HiEkB1cEkvf6VakLc3U6VTDt5YEQ p7errJFMrXGb+b/4Zffh3ACvnu6kfrtGq9qH8RthMZAnrFen6XnbGMcwvMFRbRUF7Q== Content-Transfer-Encoding: quoted-printable X-Spam-Score: -0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) [sorry for second post, first did not include bug address] Hi Eli, emacs devs, * Eli Zaretskii [2021-10-25; 05:27]: >> 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? Yes, thanks. Please close the bug report. Ciao, =2D- Gregor From unknown Tue Jun 17 01:48:44 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: Gregor Zattler Subject: bug#51360: closed (Re: bug#51360: 29.0.50; variable `server-name' initialized too late for use in init file) Message-ID: References: <83wnm11dkc.fsf@gnu.org> <871r4bk2le.fsf@no.workgroup> X-Gnu-PR-Message: they-closed 51360 X-Gnu-PR-Package: emacs X-Gnu-PR-Keywords: moreinfo Reply-To: 51360@debbugs.gnu.org Date: Mon, 25 Oct 2021 12:43:02 +0000 Content-Type: multipart/mixed; boundary="----------=_1635165782-3355-1" This is a multi-part message in MIME format... ------------=_1635165782-3355-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #51360: 29.0.50; variable `server-name' initialized too late for use in ini= t file which was filed against the emacs package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 51360@debbugs.gnu.org. --=20 51360: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D51360 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1635165782-3355-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 51360-done) by debbugs.gnu.org; 25 Oct 2021 12:42:11 +0000 Received: from localhost ([127.0.0.1]:41856 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mezIp-0000qx-JK for submit@debbugs.gnu.org; Mon, 25 Oct 2021 08:42:11 -0400 Received: from eggs.gnu.org ([209.51.188.92]:58618) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mezIn-0000qj-Px for 51360-done@debbugs.gnu.org; Mon, 25 Oct 2021 08:42:10 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:40304) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mezIi-0002k5-IP; Mon, 25 Oct 2021 08:42:04 -0400 Received: from [87.69.77.57] (port=2054 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 1mezIf-0002NV-Ka; Mon, 25 Oct 2021 08:42:03 -0400 Date: Mon, 25 Oct 2021 15:41:55 +0300 Message-Id: <83wnm11dkc.fsf@gnu.org> From: Eli Zaretskii To: Gregor Zattler In-Reply-To: <87pmrto7lj.fsf@no.workgroup> (message from Gregor Zattler on Mon, 25 Oct 2021 10:02:16 +0200) Subject: Re: bug#51360: 29.0.50; variable `server-name' initialized too late for use in init file References: <871r4bk2le.fsf@no.workgroup> <875ytm8mis.fsf@no.workgroup> <83sfwq2z3p.fsf@gnu.org> <87ee8a2nxm.fsf@no.workgroup> <83bl3d3kkm.fsf@gnu.org> <87pmrto7lj.fsf@no.workgroup> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 51360-done Cc: 51360-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > From: Gregor Zattler > Date: Mon, 25 Oct 2021 10:02:16 +0200 > > > So does this mean your problem is solved? > > Yes, thanks. Please close the bug report. Thanks, closing. ------------=_1635165782-3355-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 23 Oct 2021 18:39:44 +0000 Received: from localhost ([127.0.0.1]:37286 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1meLvk-00007m-Ew for submit@debbugs.gnu.org; Sat, 23 Oct 2021 14:39:44 -0400 Received: from lists.gnu.org ([209.51.188.17]:36638) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1meLvi-00007f-OQ for submit@debbugs.gnu.org; Sat, 23 Oct 2021 14:39:42 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:57942) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1meLve-0001cm-So for bug-gnu-emacs@gnu.org; Sat, 23 Oct 2021 14:39:39 -0400 Received: from mout.gmx.net ([212.227.17.22]:41349) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1meLvZ-0002mH-GY for bug-gnu-emacs@gnu.org; Sat, 23 Oct 2021 14:39:38 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1635014369; bh=WavrBIcRVpTtOKKMnADzC/RfAa+2D2Rx6z1FtwjsJdE=; h=X-UI-Sender-Class:From:To:Subject:Date; b=ji1nb5O1PVnEyCGngliyBdMHIlfQnq9PDKx8bTI89aOz5Pm8+Ll5rbGYwoYeD6uI9 Z9BBJl3cda/qIu/u9xhXQaBHcfKN6jH0/EsjxexE04GGs7/DvmXhpSz5bME5zpiHyW ajtqmHZQoClcrsioFPRtbaFPFFUrUYvkm5ZKBE74= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from localhost ([46.94.150.161]) by mail.gmx.net (mrgmx105 [212.227.17.168]) with ESMTPSA (Nemesis) id 1N63VY-1ml2uP1mTw-016T12; Sat, 23 Oct 2021 20:39:29 +0200 From: Gregor Zattler To: bug-gnu-emacs@gnu.org Subject: 29.0.50; variable `server-name' initialized too late for use in init file Date: Sat, 23 Oct 2021 20:39:25 +0200 Message-ID: <871r4bk2le.fsf@no.workgroup> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Provags-ID: V03:K1:50OEFRVWr5tmKa0E65B7gvPsfg32suJjTUSb/oOzi+5yMmxdXoF kEkQKvQLYSooLM4BGgPvlnCav9vEI/TjBwfxThM28Ms12Sz5IGNLihSt/N4DZLjOnu0EM7l p7KHp/L7JNOk1BEKYbw3U5d+RWfvxXhofBToJy25I7fYaXH3adY+IBxrxLN2Y241bMdqQuZ 8q9UI8XkK2haIZG8dV0Gg== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:YinwfUwnTFs=:UbYHe/M40jw9a2wXw6AlyM 4iprkbTVr3SgG/zhAsZeG6p0TpES7s8HTHO6PDFr1T3+yN0iXSGV7Kbnvr4Qq8ztQMjTzinB6 44Q6iu7MyoqPrgwUTUIz3R3e/4herPpEIAZTyYHdYz1pOUpNn43iGIuT7MxsHgzB/2idEqTVF 9xz/rLiT433sPAEEBl+VCcjeSKSkjfGkcyq9FTIvTn8LJY1yfDhJcPKC8e2oOYXPZYzN87oDE XRznJHZghjvxMLnFDYZUA015k7BwChYwARUuDrHenpt+n6ejAmEjRGifnX1W7qyUd0ljqHSUK wUHBOTNS0EzyOJyBaeV5bGeN2PoDPYzGsNDvuIBzllKvZnY+C1U/XSQLswk/AG42wb4Xv463D HRz6LQBN/tYr28ruMsDKehbYpmEF9OH5YjTxuB/eAD5qWjbQaJOvnChNQpMu82jcOYJtZleGX DXmQFbe93s6XoFFKRwj46IDgoR6d6tWifCVEOdJizsbJymmLmAMOOgqDdM+Imf4tijwxWPMQU ZawxO+rSPUig5MCxbhBt6HaB+mmeMwFvIzfK/6aCA+XjEG0qPHvNepx8EJ83s9Z+ixkA/3TRF IDYpBv5+IeLXow5uhyHwR1HZLIFNQthhJmeMLbDpPrTYHiyOyn2/Qe/Jp9cOzpPUoh1Uf+Uc7 twNp0SlmIEzgQbvALCvibLD24Rqbb7jx5q9iR19uWjHwIHV2l0gKcPgcdo7Lg5y4nwahpeK/t f+F3yedPd5PKgSCu3Vwee7RB/iUn8SVasOMB2eJRGgnXJIVro5Fy41X2GpYLTKjTfT64OWDNk 1RrlbGHGPdkGMfEJ+cao/UTFrUcfWF9k0gYTe4GJzniG6F6P8L875+ZaUuZYimCpP5R3FBxVD MmEVhpnSy/j4emeylYnMBXbF3s6/MusXDdMM8r2t7+yl63XxBpvVUaQp9qKcEJ2kEcET9HLDR N/2QyPbcVoh59bF639Pxd/fevfxjXSJCIVzY8uXXUwrcHR6PvYlq34Nwfe3dAbRtAyOlLl+5r n4qatfRgR9aqmGX0i/aJehDX5X068D9UZz2py1zm2kcqanPU0G6nxO6YB4bJLIipyQ== Received-SPF: pass client-ip=212.227.17.22; envelope-from=grfz@gmx.de; helo=mout.gmx.net X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -0.1 (/) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.4 (--) Dear emacs developers, if emacs is started as a named daemon like this: `emacs --damon=3Dfoo' or like this: `emacsclient -a "" -s foo [...]' the variable `server-name' is initialized with the name "foo" but too late to be used in init.el: Warning (initialization): An error occurred while loading =C2=B4/home/grfz/= .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. Thanks for your attention, Gregor ------------=_1635165782-3355-1--