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 22:00:21 +0200 Message-ID: <87ee8a2nxm.fsf@no.workgroup> References: <871r4bk2le.fsf@no.workgroup> <875ytm8mis.fsf@no.workgroup> <83sfwq2z3p.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="32896"; mail-complaints-to="usenet@ciao.gmane.io" To: 51360@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Oct 24 22:01:29 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 1mejgO-0008OW-5M for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 24 Oct 2021 22:01:28 +0200 Original-Received: from localhost ([::1]:59808 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mejgN-0003NR-4h for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 24 Oct 2021 16:01:27 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:49094) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mejg2-0003Mk-ET for bug-gnu-emacs@gnu.org; Sun, 24 Oct 2021 16:01:06 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:57718) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mejfx-0004K6-Rq for bug-gnu-emacs@gnu.org; Sun, 24 Oct 2021 16:01:04 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mejfx-00036F-QP for bug-gnu-emacs@gnu.org; Sun, 24 Oct 2021 16:01:01 -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 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 Original-Received: via spool by 51360-submit@debbugs.gnu.org id=B51360.163510563411875 (code B ref 51360); Sun, 24 Oct 2021 20:01:01 +0000 Original-Received: (at 51360) by debbugs.gnu.org; 24 Oct 2021 20:00:34 +0000 Original-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 Original-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 Original-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 In-Reply-To: <83sfwq2z3p.fsf@gnu.org> X-Provags-ID: V03:K1:UgEAeEMOEsnhP1SYMIUVjKekzcnyELqumQ9G1NJMBhZHbzgI66I pUPU/TlIc/+JEqrFBpQkBZ4hl8eCskzcAK/CuX45n8m6HxmT6UbrsUSLoXD7FCjNpJijre6 dXhtDTqEm8GHTQr9ZX9gPL4vAnmtArR/dgd629Z3J2ngCkX+DthA4hhVYGB/FRATiqRzvcJ czIUTGH0Y206hol+KkwBg== 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 CdpeEWDr5iJSzpZIAExnvjL94flx90ImfnNBJXaVDegi15f0Qk4kNJsIXp48MCXLI5fE7m07 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:218195 Archived-At: 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