From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: Killing a frame sometimes kills emacs Date: Wed, 12 Oct 2011 08:57:30 -0400 Message-ID: References: <87d3flnxoo.fsf@thinkpad.tsdh.de> <83fwkhdld0.fsf@gnu.org> <871uw04lr9.fsf@thinkpad.tsdh.de> <87sjog35jj.fsf@thinkpad.tsdh.de> <4E5F7ECD.9060601@swipnet.se> <838vq8e0x5.fsf@gnu.org> <87sjn03tzx.fsf@thinkpad.tsdh.de> <87sjmzbmvv.fsf@thinkpad.tsdh.de> <87vcrvm0dr.fsf@stupidchicken.com> <87aa96ogb3.fsf@thinkpad.tsdh.de> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1318424271 22617 80.91.229.12 (12 Oct 2011 12:57:51 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 12 Oct 2011 12:57:51 +0000 (UTC) Cc: Chong Yidong , emacs-devel@gnu.org, schwab@linux-m68k.org, James Cloos , Eli Zaretskii , "Jan D." , Ulrich Mueller To: Tassilo Horn Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Oct 12 14:57:44 2011 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1RDyNT-0001yX-FU for ged-emacs-devel@m.gmane.org; Wed, 12 Oct 2011 14:57:43 +0200 Original-Received: from localhost ([::1]:43518 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RDyNR-0000Qh-W3 for ged-emacs-devel@m.gmane.org; Wed, 12 Oct 2011 08:57:41 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:55964) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RDyNM-0000QW-Nz for emacs-devel@gnu.org; Wed, 12 Oct 2011 08:57:40 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RDyNL-0006Lj-Su for emacs-devel@gnu.org; Wed, 12 Oct 2011 08:57:36 -0400 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.183]:8641 helo=ironport2-out.pppoe.ca) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RDyNH-0006LB-Tm; Wed, 12 Oct 2011 08:57:31 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Av0EAIONlU5FxJoX/2dsb2JhbABDqC6BBoFTAQEEAScvIwULCzQSFBgNJIgRugWHWAShIIRF X-IronPort-AV: E=Sophos;i="4.69,334,1315195200"; d="scan'208";a="141405082" Original-Received: from 69-196-154-23.dsl.teksavvy.com (HELO pastel.home) ([69.196.154.23]) by ironport2-out.pppoe.ca with ESMTP/TLS/ADH-AES256-SHA; 12 Oct 2011 08:57:30 -0400 Original-Received: by pastel.home (Postfix, from userid 20848) id 79B025933F; Wed, 12 Oct 2011 08:57:30 -0400 (EDT) In-Reply-To: <87aa96ogb3.fsf@thinkpad.tsdh.de> (Tassilo Horn's message of "Wed, 12 Oct 2011 08:49:20 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.90 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 206.248.154.183 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:144993 Archived-At: > I commente 3 lines as indicated below: > --8<---------------cut here---------------start------------->8--- > /* If needed, delete the terminal that this frame was on. > (This must be done after the frame is killed.) */ > terminal->reference_count--; > if (terminal->reference_count == 0) > { > // Lisp_Object tmp; > // XSETTERMINAL (tmp, terminal); > kb = NULL; > // Fdelete_terminal (tmp, NILP (force) ? Qt : force); > } > else > kb = terminal->kboard; > --8<---------------cut here---------------end--------------->8--- > I'm not sure if keeping the "kb = NULL;" was correct, though. If you > want, I can try again with the complete then block commented. I'd suggest to only comment out the "terminal->reference_count--;". Stefan