From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: andres.ramirez Newsgroups: gmane.emacs.devel Subject: Re: Killing a frame sometimes kills emacs Date: Fri, 20 Jan 2012 18:29:21 -0500 Message-ID: <878vl2rm0e.wl%andres.ramirez@kipuamutay.com> 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> <8762ijjbzu.fsf@tsdh.uni-koblenz.de> <87sjllepnk.fsf@tsdh.uni-koblenz.de> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII X-Trace: dough.gmane.org 1327102209 17513 80.91.229.12 (20 Jan 2012 23:30:09 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 20 Jan 2012 23:30:09 +0000 (UTC) Cc: Chong Yidong , emacs-devel@gnu.org, schwab@linux-m68k.org, Stefan Monnier , 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 Sat Jan 21 00:30:03 2012 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 1RoNuE-0000vX-6G for ged-emacs-devel@m.gmane.org; Sat, 21 Jan 2012 00:30:02 +0100 Original-Received: from localhost ([::1]:37681 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RoNuD-0005Oz-LN for ged-emacs-devel@m.gmane.org; Fri, 20 Jan 2012 18:30:01 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:39325) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RoNuB-0005Os-48 for emacs-devel@gnu.org; Fri, 20 Jan 2012 18:30:00 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RoNu6-0007ll-6q for emacs-devel@gnu.org; Fri, 20 Jan 2012 18:29:58 -0500 Original-Received: from mail-gy0-f169.google.com ([209.85.160.169]:58006) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RoNu6-0007l1-4A; Fri, 20 Jan 2012 18:29:54 -0500 Original-Received: by ghrr14 with SMTP id r14so612658ghr.0 for ; Fri, 20 Jan 2012 15:29:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=sender:date:message-id:from:to:cc:newsgroups:subject:in-reply-to :references:x-mailer:user-agent:mime-version:content-type; bh=3Spit3Yhhv7RjdDit5bf6ILOt56XWx+3BZM3Vw9QIs4=; b=hnZpRai+ctytBwCcVsFM8RvXQz2dut6qHdfZyypv4Rjoq5XZniSzq/dBh0XpcKZq7A B6vGlC7DsJS64sdK1yTfG3Gza8y73LKTY9B0gJDSobc6O2kxtmZfSixVToYUlsVo4hNz LD6ysYxcYjL0ZSwv5xHRW39dk+9EnYGnYDets= Original-Received: by 10.236.192.200 with SMTP id i48mr22011503yhn.126.1327102192675; Fri, 20 Jan 2012 15:29:52 -0800 (PST) Original-Received: from kipuamutay.com.ryu.edu ([201.240.84.37]) by mx.google.com with ESMTPS id i32sm12264014anm.22.2012.01.20.15.29.49 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 20 Jan 2012 15:29:51 -0800 (PST) Original-Newsgroups: gmane.emacs.devel In-Reply-To: <87sjllepnk.fsf@tsdh.uni-koblenz.de> X-Mailer: Wanderlust/2.15.9 User-Agent: SEMI/1.14.6 (Maruoka) FLIM/1.14.9 (=?UTF-8?B?R29qxY0=?=) APEL/10.8 Emacs/23.3 (i686-pc-linux-gnu) MULE/6.0 (HANACHIRUSATO) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 209.85.160.169 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:147795 Archived-At: Hi. I have revno 106895. And this problem still persist. emacs is configured as follows: In GNU Emacs 24.0.50.1 (i686-pc-linux-gnu, GTK+ Version 3.2.3) of 2012-01-20 on wari Windowing system distributor `The X.Org Foundation', version 11.0.11103000 configured using `configure '--prefix=/usr' '--sysconfdir=/etc' '--localstatedir=/var' '--libexecdir=/usr/lib' '--mandir=/usr/share/man/emacs-24' '--without-sound' '--program-suffix=-emacs-24' '--infodir=/usr/share/info/emacs-24' '--with-x-toolkit=gtk3' 'CFLAGS=-march=i686 -mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2' 'LDFLAGS=-Wl,-O1,--sort-common,--as-needed,-z,relro,--hash-style=gnu'' Regards At Fri, 18 Nov 2011 10:38:39 +0100, Tassilo Horn wrote: > > Stefan Monnier writes: > > Hi Stefan, > > > To avoid the risk of reaching 0 via wrap-around (yes, I know that > > creating a billion frames in the life of a single session is unlikely, > > but still), you could do: > > > > /* If needed, delete the terminal that this frame was on. > > (This must be done after the frame is killed.) */ > > terminal->reference_count--; > > #ifdef USE_GTK > > /* ... (Use C-style not C++ style comments) ... */ > > if (terminal->reference_count == 0 && terminal->type == output_x_window) > > terminal->reference_count = 1; > > #endif > > if (terminal->reference_count == 0) > > { > > Lisp_Object tmp; > > I liked this version best and it's committed now. > > Bye, > Tassilo > -- > (What the world needs (I think) is not > (a Lisp (with fewer parentheses)) > but (an English (with more.))) > Brian Hayes, http://tinyurl.com/3y9l2kf > >