GNU bug report logs -
#23689
Daemon-mode on Windows - "w32-initialized" is set too early
Previous Next
Reported by: Paul Moore <p.f.moore <at> gmail.com>
Date: Fri, 3 Jun 2016 10:34:02 UTC
Severity: normal
Tags: notabug
Done: Stefan Kangas <stefan <at> marxist.se>
Bug is archived. No further changes may be made.
Full log
Message #11 received at 23689 <at> debbugs.gnu.org (full text, mbox):
On 4 June 2016 at 11:07, Eli Zaretskii <eliz <at> gnu.org> wrote:
>> From: Paul Moore <p.f.moore <at> gmail.com>
>> Date: Fri, 3 Jun 2016 11:33:00 +0100
>>
>> When Emacs starts in daemon mode on Windows, "w32-initialized" is set
>> to "t" right at the start - before the window system is initialized.
>> Specifically, before (find-font) will work correctly.
>>
>> To demonstrate, start Emacs in daemon mode, with a .emacs.d/init.el
>> containing a statement at the top to display the value of
>> "w32-initialized". The value "t" is shown.
>
> It looks like this is an internal variable whose purpose is to make
> sure the w32 GUI initialization code is called only once per session;
> it shouldn't be used for any other purpose. I guess we could make
> this more explicit in the doc string, but other than that I see no bug
> here.
OK. The spacemacs initialisation code uses this variable (along with
ns-initialized and x-initialized) to ensure that certain actions (e.c.
find-font) are only run after the display is initialized. It's only
w32-initialized for which this approach doesn't work. Is there a
better way of testing for this situation that should be used?
Paul
This bug report was last modified 5 years and 203 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.