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

From: Stefan Kangas <[email-masked]>
Date: Sun, 24 Oct 2021 05:46:36 -0700

Gregor Zattler <[email-masked]> writes:

> 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.

Doesn't this just depend on when you call `server-start'?

Do you have a recipe for reproducing this?