From mboxrd@z Thu Jan 1 00:00:00 1970
Path: news.gmane.org!not-for-mail
From: Paul Moore
Newsgroups: gmane.emacs.bugs
Subject: bug#23689: Daemon-mode on Windows - "w32-initialized" is set too early
Date: Sat, 4 Jun 2016 11:29:28 +0100
Message-ID:
References:
<8337otw9m0.fsf@gnu.org>
NNTP-Posting-Host: plane.gmane.org
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
X-Trace: ger.gmane.org 1465036223 12363 80.91.229.3 (4 Jun 2016 10:30:23 GMT)
X-Complaints-To: usenet@ger.gmane.org
NNTP-Posting-Date: Sat, 4 Jun 2016 10:30:23 +0000 (UTC)
Cc: 23689@debbugs.gnu.org
To: Eli Zaretskii
Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Jun 04 12:30:14 2016
Return-path:
Envelope-to: geb-bug-gnu-emacs@m.gmane.org
Original-Received: from lists.gnu.org ([208.118.235.17])
by plane.gmane.org with esmtp (Exim 4.69)
(envelope-from )
id 1b98qL-0005Py-W3
for geb-bug-gnu-emacs@m.gmane.org; Sat, 04 Jun 2016 12:30:14 +0200
Original-Received: from localhost ([::1]:60236 helo=lists.gnu.org)
by lists.gnu.org with esmtp (Exim 4.71)
(envelope-from )
id 1b98qK-0003pv-TH
for geb-bug-gnu-emacs@m.gmane.org; Sat, 04 Jun 2016 06:30:12 -0400
Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:35728)
by lists.gnu.org with esmtp (Exim 4.71)
(envelope-from ) id 1b98qF-0003n8-5d
for bug-gnu-emacs@gnu.org; Sat, 04 Jun 2016 06:30:08 -0400
Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
(envelope-from ) id 1b98qA-0002kZ-Vk
for bug-gnu-emacs@gnu.org; Sat, 04 Jun 2016 06:30:06 -0400
Original-Received: from debbugs.gnu.org ([208.118.235.43]:41424)
by eggs.gnu.org with esmtp (Exim 4.71)
(envelope-from ) id 1b98qA-0002kU-TN
for bug-gnu-emacs@gnu.org; Sat, 04 Jun 2016 06:30:02 -0400
Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2)
(envelope-from ) id 1b98qA-0007KT-L2
for bug-gnu-emacs@gnu.org; Sat, 04 Jun 2016 06:30:02 -0400
X-Loop: help-debbugs@gnu.org
Resent-From: Paul Moore
Original-Sender: "Debbugs-submit"
Resent-CC: bug-gnu-emacs@gnu.org
Resent-Date: Sat, 04 Jun 2016 10:30:02 +0000
Resent-Message-ID:
Resent-Sender: help-debbugs@gnu.org
X-GNU-PR-Message: followup 23689
X-GNU-PR-Package: emacs
X-GNU-PR-Keywords:
Original-Received: via spool by 23689-submit@debbugs.gnu.org id=B23689.146503617728119
(code B ref 23689); Sat, 04 Jun 2016 10:30:02 +0000
Original-Received: (at 23689) by debbugs.gnu.org; 4 Jun 2016 10:29:37 +0000
Original-Received: from localhost ([127.0.0.1]:53761 helo=debbugs.gnu.org)
by debbugs.gnu.org with esmtp (Exim 4.84_2)
(envelope-from )
id 1b98pk-0007JT-S6
for submit@debbugs.gnu.org; Sat, 04 Jun 2016 06:29:37 -0400
Original-Received: from mail-wm0-f51.google.com ([74.125.82.51]:38067)
by debbugs.gnu.org with esmtp (Exim 4.84_2)
(envelope-from ) id 1b98pi-0007JF-KO
for 23689@debbugs.gnu.org; Sat, 04 Jun 2016 06:29:34 -0400
Original-Received: by mail-wm0-f51.google.com with SMTP id m124so17290213wme.1
for <23689@debbugs.gnu.org>; Sat, 04 Jun 2016 03:29:34 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
h=mime-version:in-reply-to:references:from:date:message-id:subject:to
:cc; bh=mbkEE8guPxHck9DUrumnm8xT2VZWRKTeGgzlIH+OTg4=;
b=iUHZkEQncesaaQio3aM0OnzRhMxZr12AjCVC1KkMAsoE2g4v0rIC+pGPhOhL+YNBz9
hOT5x5pbpnL7W6pdU1FYplbX9Pam9HVJ1pWQpzjTQAIuu+EiITfgCo7exGfXLow+fEOR
9xLh71AWbLWLrfM78YASFD/aJkiVyre1v5tSb6YeuBTFg3oN5hroDld7PxI//qAHIiqC
fHIaF9yEOvmSegL/z2i0sZMPxQ/iN0DbtYzycUNSwGAdQd/senVEyjpbI/cm/04vIVDg
oAHcDfWDfIGm3xlJEDNTahoQDmztORyimtSTOfQv/FF/PvdljFHiCPeQJsAVong8+9J/
Gw2Q==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20130820;
h=x-gm-message-state:mime-version:in-reply-to:references:from:date
:message-id:subject:to:cc;
bh=mbkEE8guPxHck9DUrumnm8xT2VZWRKTeGgzlIH+OTg4=;
b=bIC73hvkn09sNQl5GBi1Tn1/IsQAV29spQ6P+m3r3UFgswTIbsT2+9UKugM6NTAacP
1JM17b5mY94R7IFPekkrLjfhSDOAYruK5SoFP93ITNPJI5jaxF1vqKcRpSiR8bXztafZ
eDzRgijqpLx5IhHBAmkSGtXM6Ul3DWOHUO9Slz3cRs9fpakus8NVazuUk1h8clEA0IsF
RArHp/rQtEaALPNq0M9mL8PGMA/vkuLPYUwe/FscBabvsz3yVmI/nH23uvcfYkr7zGwX
EmMOSVVaG/Flq8cXRePYawlHUHGHKwjGr3J/Q8hVL3WWVukMd7C91N+5sqRkA+cd7X0K
VKow==
X-Gm-Message-State: ALyK8tKWWQICmb2GgNiSqMCweFUjm42Tr4T7Tubx7pAGR7Mfd5P7jZ8doNhBodKzfRR+H4OqaeZRvxvKua3vxA==
X-Received: by 10.28.63.5 with SMTP id m5mr3535604wma.24.1465036169058; Sat,
04 Jun 2016 03:29:29 -0700 (PDT)
Original-Received: by 10.194.108.136 with HTTP; Sat, 4 Jun 2016 03:29:28 -0700 (PDT)
In-Reply-To: <8337otw9m0.fsf@gnu.org>
X-BeenThere: debbugs-submit@debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
X-Received-From: 208.118.235.43
X-BeenThere: bug-gnu-emacs@gnu.org
List-Id: "Bug reports for GNU Emacs,
the Swiss army knife of text editors"
List-Unsubscribe: ,
List-Archive:
List-Post:
List-Help:
List-Subscribe: ,
Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org
Original-Sender: "bug-gnu-emacs"
Xref: news.gmane.org gmane.emacs.bugs:119045
Archived-At:
On 4 June 2016 at 11:07, Eli Zaretskii wrote:
>> From: Paul Moore
>> 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