From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Juanma Barranquero Newsgroups: gmane.emacs.bugs Subject: bug#11102: 24.0.94; C-x C-c from a client frame sometimes kills the whole Emacs process Date: Thu, 12 Apr 2012 20:11:38 +0200 Message-ID: References: <87obreaups.fsf@gnu.org> <83wr62yocw.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1334254384 32423 80.91.229.3 (12 Apr 2012 18:13:04 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 12 Apr 2012 18:13:04 +0000 (UTC) Cc: 11102@debbugs.gnu.org, Chong Yidong To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Apr 12 20:13:03 2012 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 1SIOVy-000198-33 for geb-bug-gnu-emacs@m.gmane.org; Thu, 12 Apr 2012 20:13:02 +0200 Original-Received: from localhost ([::1]:49374 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SIOVx-0003v9-Eg for geb-bug-gnu-emacs@m.gmane.org; Thu, 12 Apr 2012 14:13:01 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:51008) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SIOVp-0003qQ-Ob for bug-gnu-emacs@gnu.org; Thu, 12 Apr 2012 14:12:59 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SIOVl-0007kV-6F for bug-gnu-emacs@gnu.org; Thu, 12 Apr 2012 14:12:53 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:58126) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SIOVl-0007kQ-0D for bug-gnu-emacs@gnu.org; Thu, 12 Apr 2012 14:12:49 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1SIOWw-00051t-DX for bug-gnu-emacs@gnu.org; Thu, 12 Apr 2012 14:14:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Juanma Barranquero Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 12 Apr 2012 18:14:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 11102 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 11102-submit@debbugs.gnu.org id=B11102.133425441619292 (code B ref 11102); Thu, 12 Apr 2012 18:14:01 +0000 Original-Received: (at 11102) by debbugs.gnu.org; 12 Apr 2012 18:13:36 +0000 Original-Received: from localhost ([127.0.0.1]:54664 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SIOWV-000517-Ur for submit@debbugs.gnu.org; Thu, 12 Apr 2012 14:13:36 -0400 Original-Received: from mail-pz0-f42.google.com ([209.85.210.42]:56148) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SIOWT-00050z-FU for 11102@debbugs.gnu.org; Thu, 12 Apr 2012 14:13:33 -0400 Original-Received: by dang27 with SMTP id g27so3576042dan.29 for <11102@debbugs.gnu.org>; Thu, 12 Apr 2012 11:12:18 -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:content-type:content-transfer-encoding; bh=OUED6ZAfvpAEbxmIMvPd0j34uDfawffA3oLW581hEl8=; b=wVHA5tFbdQNuCZccaqvH4CWMYQOIJOnHYCF8beGQw4V1t9KL2hhtLAjrSac5AoM6dn T+6zf8XPvMLiPLEor0OlJ6x2bvtPjFcmg4YygmyF0lsjRpNw2ie8Qa+CLSL7a+38iBo3 MjfyXUPxafmLyknWHc8XopucVEJjADQgdXbpY45UQc6q63Yy0qskjyU5Elq8C0pi9Bsp pW1G2K7AbMLm3aXVp9Gu05GJTOt2klcQT5jnLtthx0nc1ci+/xyeJOGfj+qjWe0wumRy /+H4h2/VkpKKmvUiwYOVkYmk1LrFWBFbvmFB0WO5R7WDVcq89DU5fO/lq10SO3MFU1hl meyA== Original-Received: by 10.68.227.73 with SMTP id ry9mr4555711pbc.33.1334254338468; Thu, 12 Apr 2012 11:12:18 -0700 (PDT) Original-Received: by 10.142.204.14 with HTTP; Thu, 12 Apr 2012 11:11:38 -0700 (PDT) In-Reply-To: <83wr62yocw.fsf@gnu.org> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) 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:58911 Archived-At: On Fri, Mar 30, 2012 at 19:45, Eli Zaretskii wrote: > It most probably is. =C2=A0Juanma, could you take a look, please? A little after current_frame is forced to 0 on Windows (in the -c / -t case= s): #ifdef WINDOWSNT /* Emacs on Windows does not support GUI and console frames in the same instance. So, it makes sense to treat the -t and -c options as equivalent, and open a new frame regardless of whether the running instance is GUI or console. Ideally, we would only set tty =3D 1 when the instance is running in a console, but alas we don't know that. The simplest workaround is to always ask for a tty frame, and let server.el check whether it makes sense. */ if (tty || !current_frame) { display =3D (const char *) ttyname (fileno (stdout)); current_frame =3D 0; tty =3D 1; } #endif there's this bit of code (non-WINDOWSNT-specific): /* --no-wait implies --current-frame on ttys when there are file arguments or expressions given. */ if (nowait && tty && argc - optind > 0) current_frame =3D 1; which causes the bug. I'm not sure I understand the logic after that code, and even less sure it makes sense on Windows. WDYT? =C2=A0 =C2=A0 Juanma