GNU bug report logs - #51360
29.0.50; variable `server-name' initialized too late for use in init file

Previous Next

Package: emacs;

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


View this message in rfc822 format

From: Eli Zaretskii <eliz <at> gnu.org>
To: Gregor Zattler <grfz <at> gmx.de>
Cc: 51360 <at> debbugs.gnu.org, stefan <at> marxist.se
Subject: bug#51360: 29.0.50; variable `server-name' initialized too late for use in init file
Date: Sun, 24 Oct 2021 18:59:06 +0300
> From: Gregor Zattler <grfz <at> gmx.de>
> Date: Sun, 24 Oct 2021 17:34:19 +0200
> Cc: 51360 <at> debbugs.gnu.org
> 
> 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

Whatever you do that you need server-name for, can't you do that in
emacs-startup-hook?  AFAIR, that gets called after the daemon already
finished its initialization and provided its name to Emacs, so
server-name should be already populated.




This bug report was last modified 3 years and 206 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.