bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


From: Gregor Zattler
Subject: bug#51360: 29.0.50; variable `server-name' initialized too late for use in init file
Date: Sun, 24 Oct 2021 17:34:19 +0200

Hi Stefan, emacs devs,
* Stefan Kangas <stefan@marxist.se> [2021-10-24; 05:46]:
> Gregor Zattler <grfz@gmx.de> 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'?

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



Ciao,
-- 
Gregor





reply via email to

[Prev in Thread] Current Thread [Next in Thread]