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:37 -0500 Message-ID: <877h0mrlzy.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 1327102226 17566 80.91.229.12 (20 Jan 2012 23:30:26 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 20 Jan 2012 23:30:26 +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:18 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 1RoNuR-00011F-Ul for ged-emacs-devel@m.gmane.org; Sat, 21 Jan 2012 00:30:16 +0100 Original-Received: from localhost ([::1]:38256 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RoNuR-0005mU-ER for ged-emacs-devel@m.gmane.org; Fri, 20 Jan 2012 18:30:15 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:39450) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RoNuN-0005jZ-Hf for emacs-devel@gnu.org; Fri, 20 Jan 2012 18:30:13 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RoNuJ-0007uU-MY for emacs-devel@gnu.org; Fri, 20 Jan 2012 18:30:11 -0500 Original-Received: from mail-yx0-f169.google.com ([209.85.213.169]:55801) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RoNuJ-0007st-26; Fri, 20 Jan 2012 18:30:07 -0500 Original-Received: by yenm10 with SMTP id m10so601885yen.0 for ; Fri, 20 Jan 2012 15:30:06 -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=Is9eZFscNsjHlFZK0NkK7jJ8B3Phju6/Yd6r2behbpZEIb9SFtRhiuKRFDzKPjIR1g VWpQI7awDz/6sSg301i8ko6tAmlx5G9aiH085cPdbzSVQDIXs7eCAnsA5+Sp6M56BhPj ubJ2ESUAUX++9utjcqbs6gqo7sPrCUaNt/eu4= Original-Received: by 10.236.77.232 with SMTP id d68mr48530853yhe.98.1327102204694; Fri, 20 Jan 2012 15:30:04 -0800 (PST) Original-Received: from kipuamutay.com.ryu.edu ([201.240.84.37]) by mx.google.com with ESMTPS id v17sm12265823anm.21.2012.01.20.15.30.02 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 20 Jan 2012 15:30:04 -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.213.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:147796 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 > >