GNU bug report logs -
#51360
29.0.50; variable `server-name' initialized too late for use in init file
Previous Next
Reported by: Gregor Zattler <grfz <at> gmx.de>
Date: Sat, 23 Oct 2021 18:40:02 UTC
Severity: normal
Tags: moreinfo
Found in version 29.0.50
Done: Eli Zaretskii <eliz <at> gnu.org>
Bug is archived. No further changes may be made.
Full log
Message #11 received at 51360 <at> debbugs.gnu.org (full text, mbox):
Hi Stefan, emacs devs,
* Stefan Kangas <stefan <at> marxist.se> [2021-10-24; 05:46]:
> Gregor Zattler <grfz <at> 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
This bug report was last modified 3 years and 261 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.