From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#17510: 24.3.91; Problem with `emacs --daemon' in cygw32 build Date: Sun, 18 May 2014 07:32:32 +0300 Message-ID: <831tvremfz.fsf@gnu.org> References: <53764FD9.8090600@cornell.edu> <53766FBC.1000601@cornell.edu> <5377F335.2080609@cornell.edu> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1400387604 14114 80.91.229.3 (18 May 2014 04:33:24 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 18 May 2014 04:33:24 +0000 (UTC) Cc: 17510@debbugs.gnu.org, dmantipov@yandex.ru To: Ken Brown Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun May 18 06:33:16 2014 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 1Wlsmh-0000Qo-Gy for geb-bug-gnu-emacs@m.gmane.org; Sun, 18 May 2014 06:33:15 +0200 Original-Received: from localhost ([::1]:42364 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wlsmh-0005vx-6s for geb-bug-gnu-emacs@m.gmane.org; Sun, 18 May 2014 00:33:15 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:37625) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WlsmZ-0005vl-Vj for bug-gnu-emacs@gnu.org; Sun, 18 May 2014 00:33:12 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WlsmV-0005Gf-2a for bug-gnu-emacs@gnu.org; Sun, 18 May 2014 00:33:07 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:52991) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WlsmU-0005Gb-WB for bug-gnu-emacs@gnu.org; Sun, 18 May 2014 00:33:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1WlsmU-0000NP-DA for bug-gnu-emacs@gnu.org; Sun, 18 May 2014 00:33:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 18 May 2014 04:33:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 17510 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 17510-submit@debbugs.gnu.org id=B17510.14003875631413 (code B ref 17510); Sun, 18 May 2014 04:33:02 +0000 Original-Received: (at 17510) by debbugs.gnu.org; 18 May 2014 04:32:43 +0000 Original-Received: from localhost ([127.0.0.1]:51868 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WlsmA-0000Mi-Ff for submit@debbugs.gnu.org; Sun, 18 May 2014 00:32:42 -0400 Original-Received: from mtaout21.012.net.il ([80.179.55.169]:34834) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Wlsm6-0000MG-Aq for 17510@debbugs.gnu.org; Sun, 18 May 2014 00:32:40 -0400 Original-Received: from conversion-daemon.a-mtaout21.012.net.il by a-mtaout21.012.net.il (HyperSendmail v2007.08) id <0N5R00D005PZ6B00@a-mtaout21.012.net.il> for 17510@debbugs.gnu.org; Sun, 18 May 2014 07:32:31 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout21.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0N5R00DAG5Y70980@a-mtaout21.012.net.il>; Sun, 18 May 2014 07:32:31 +0300 (IDT) In-reply-to: <5377F335.2080609@cornell.edu> X-012-Sender: halo1@inter.net.il X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.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-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:89203 Archived-At: > Date: Sat, 17 May 2014 19:39:33 -0400 > From: Ken Brown > > On 5/16/2014 4:06 PM, Ken Brown wrote: > > On 5/16/2014 1:50 PM, Ken Brown wrote: > >> This bug was reported in the Cygwin mailing list: > >> > >> https://cygwin.com/ml/cygwin/2014-05/msg00303.html > >> > >> In a Cygwin terminal, do the following, where "emacs" denotes the cygw32 > >> build of emacs (--with-w32). > >> > >> 1. $ emacs --daemon -Q > >> 2. $ emacsclient -c > >> 3. `C-x 5 0' in the client window to exit the frame. > >> 4. Repeat steps 2 and 3. > >> 5. Attempt to carry out steps 2 and 3 a third time. The message > >> "Waiting for Emacs..." appears in the terminal, but no new frame opens. > >> > >> This problem is specific to the cygw32 build; it does not happen with > >> the X11 build of emacs on Cygwin. It also doesn't happen if the server > >> is started via `M-x server-start' in an existing emacs. > > > > And it doesn't happen in emacs-24.3. As soon as I have a chance, I'll > > do a bisection to see when it started. > > Here's the culprit: > > revno: 114710 > committer: Dmitry Antipov > branch nick: trunk > timestamp: Fri 2013-10-18 16:57:44 +0400 > message: > Remove port-specific display name lists to avoid extra > complexity and data duplication with display info lists. > [...] > * w32term.h (w32_display_name_list): Remove declaration. > * w32term.c (w32_display_name_list): Remove. > (w32_initialize_display_info, x_delete_display, syms_of_w32term): > Adjust users. > * w32fns.c (x_display_info_for_name, Fx_display_list): > Likewise. Use x_display_list where appropriate. > [...] > > The attached patch applied to the emacs-24 branch reverts these changes > and fixes the problem. This is presumably no the "right" fix. Note, > however, that Dimity's commit introduced a "FIXME" into x_delete_display > in w32term.c. Maybe that's the issue. Thanks, but you need to be more selective: which one of these changes is the root cause, and why? In general, everything that is related to one_w32_display_info is specific to the WINDOWSNT port, so perhaps the problem is that the Cygwin-w32 build is incorrectly treated the same. But where exactly? Once you point out the parts that are causing this bug, they should be modified for __CYGWIN__, but left alone for WINDOWSNT. Thanks.