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