unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Gregor Zattler <grfz@gmx.de>
To: 51360@debbugs.gnu.org
Subject: bug#51360: 29.0.50; variable `server-name' initialized too late for use in init file
Date: Mon, 25 Oct 2021 10:02:16 +0200	[thread overview]
Message-ID: <87pmrto7lj.fsf@no.workgroup> (raw)
In-Reply-To: <83bl3d3kkm.fsf@gnu.org>

[sorry for second post, first did not include bug address]
Hi Eli, emacs devs,
* Eli Zaretskii <eliz@gnu.org> [2021-10-25; 05:27]:
>> From: Gregor Zattler <grfz@gmx.de>
>> Date: Sun, 24 Oct 2021 22:00:21 +0200
>>
>> > 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.
>>
>> the idea is to initialise the emacs daemon depending on it's
>> server-name.  Therefore doing it via emacs-startup-hook is
>> somewhat counter-intuitive
>
> Sorry, I don't think I follow: what has intuition got to do with this?
> And what do you mean by "initialise the emacs daemon"? -- that happens
> out of your control, in the internal Emacs code.
>
>> But you are right that works.  Thanks.
>
> So does this mean your problem is solved?

Yes, thanks.  Please close the bug report.

Ciao,
--
Gregor





  reply	other threads:[~2021-10-25  8:02 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-10-23 18:39 bug#51360: 29.0.50; variable `server-name' initialized too late for use in init file Gregor Zattler
2021-10-24 12:46 ` Stefan Kangas
2021-10-24 15:34   ` Gregor Zattler
2021-10-24 15:45     ` Gregory Heytings
2021-10-24 19:42       ` Gregor Zattler
2021-10-24 15:59     ` Eli Zaretskii
2021-10-24 20:00       ` Gregor Zattler
2021-10-25  2:27         ` Eli Zaretskii
2021-10-25  8:02           ` Gregor Zattler [this message]
2021-10-25 12:41             ` Eli Zaretskii

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87pmrto7lj.fsf@no.workgroup \
    --to=grfz@gmx.de \
    --cc=51360@debbugs.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).