Subject: bug#51360: closed (Re: bug#51360: 29.0.50; variable `server-name' initialized too late for use in init file)

From: [email-masked] (GNU bug Tracking System)
Date: Mon, 25 Oct 2021 12:43:02 +0000

Your bug report

#51360: 29.0.50; variable `server-name' initialized too late for use in init 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 [email-masked].

-- 
51360: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=51360
GNU Bug Tracking System
Contact [email-masked] with problems

Subject: Re: bug#51360: 29.0.50; variable `server-name' initialized too late for use in init file
From: Eli Zaretskii <[email-masked]>
To: Gregor Zattler <[email-masked]>
Cc: [email-masked]
Date: Mon, 25 Oct 2021 15:41:55 +0300
List-Id: <debbugs-submit.debbugs.gnu.org>

> From: Gregor Zattler <[email-masked]>
> 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.

Subject: 29.0.50; variable `server-name' initialized too late for use in init file
From: Gregor Zattler <[email-masked]>
To: [email-masked]
Date: Sat, 23 Oct 2021 20:39:25 +0200
List-Id: <debbugs-submit.debbugs.gnu.org>

Dear emacs developers, if emacs is started as a named daemon
like this: `emacs --damon=foo' 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 ´/home/grfz/.config/emacs/init.el´:

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