From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Chong Yidong 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: Sat, 14 Apr 2012 18:33:39 +0800 Message-ID: <878vhyfvr0.fsf@gnu.org> References: <87obreaups.fsf@gnu.org> <83wr62yocw.fsf@gnu.org> <83mx6f3der.fsf@gnu.org> <87zkaeud3l.fsf@gnu.org> <87sjg6uba4.fsf@gnu.org> <831unq3hc9.fsf@gnu.org> <87d37aafss.fsf@gnu.org> <83r4vq1x2e.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1334399687 4649 80.91.229.3 (14 Apr 2012 10:34:47 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 14 Apr 2012 10:34:47 +0000 (UTC) Cc: lekktu@gmail.com, 11102@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Apr 14 12:34:45 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 1SJ0JY-0000ii-EN for geb-bug-gnu-emacs@m.gmane.org; Sat, 14 Apr 2012 12:34:44 +0200 Original-Received: from localhost ([::1]:38010 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SJ0JX-0006oE-M0 for geb-bug-gnu-emacs@m.gmane.org; Sat, 14 Apr 2012 06:34:43 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:59988) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SJ0JU-0006nu-Nr for bug-gnu-emacs@gnu.org; Sat, 14 Apr 2012 06:34:41 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SJ0JS-0008LC-Us for bug-gnu-emacs@gnu.org; Sat, 14 Apr 2012 06:34:40 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:33290) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SJ0JS-0008L7-Qs for bug-gnu-emacs@gnu.org; Sat, 14 Apr 2012 06:34:38 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1SJ0Kn-0000Qz-KW for bug-gnu-emacs@gnu.org; Sat, 14 Apr 2012 06:36:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Chong Yidong Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 14 Apr 2012 10:36: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.13343997171611 (code B ref 11102); Sat, 14 Apr 2012 10:36:01 +0000 Original-Received: (at 11102) by debbugs.gnu.org; 14 Apr 2012 10:35:17 +0000 Original-Received: from localhost ([127.0.0.1]:58061 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SJ0K4-0000Pw-QS for submit@debbugs.gnu.org; Sat, 14 Apr 2012 06:35:17 -0400 Original-Received: from fencepost.gnu.org ([208.118.235.10]:60048) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SJ0K1-0000Po-GV for 11102@debbugs.gnu.org; Sat, 14 Apr 2012 06:35:14 -0400 Original-Received: from bb220-255-229-180.singnet.com.sg ([220.255.229.180]:50987 helo=ulysses) by fencepost.gnu.org with esmtpsa (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1SJ0Id-00057E-GT; Sat, 14 Apr 2012 06:33:48 -0400 In-Reply-To: <83r4vq1x2e.fsf@gnu.org> (Eli Zaretskii's message of "Sat, 14 Apr 2012 12:28:57 +0300") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.95 (gnu/linux) 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:59048 Archived-At: Eli Zaretskii writes: > Try doing this with Emacs built --without-x Hmm, what I get with --without-x is 1. emacs -Q -nw -f server-start 2. emacsclient -c -n foo.txt *ERROR*: Don't know how to create a frame on window system x so I guess some more intelligent error handling is needed here. If I use "-t -n foo.txt", then (as I noted in my earlier email) the file is opened in the existing Emacs terminal frame. I'll see what I can do about these issues, but they are basically not urgent to fix for 24.1. The issue which Dani and Juanma were talking about is a separate one: for a graphical Emacs on Windows, "emacsclient -c -n foo.txt" ought to create a new frame with a `client' parameter, so that C-x C-c exits Emacs instead of closing just that frame. That is the intended behavior, which is also the behavior on GNU/Linux when there is a graphical display available. I think the patch I posted earlier should DTRT for Windows, if you or Juanma can try it.