From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: =?ISO-8859-1?Q?Jan_Dj=E4rv?= Newsgroups: gmane.emacs.devel Subject: Re: Killing a frame sometimes kills emacs Date: Tue, 11 Oct 2011 19:56:10 +0200 Message-ID: <4E94833A.1030208@swipnet.se> 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> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1318355790 25982 80.91.229.12 (11 Oct 2011 17:56:30 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 11 Oct 2011 17:56:30 +0000 (UTC) Cc: Eli Zaretskii , schwab@linux-m68k.org, emacs-devel@gnu.org To: Tassilo Horn Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Oct 11 19:56:23 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 1RDgYv-0001qe-M8 for ged-emacs-devel@m.gmane.org; Tue, 11 Oct 2011 19:56:21 +0200 Original-Received: from localhost ([::1]:43258 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RDgYu-000128-Px for ged-emacs-devel@m.gmane.org; Tue, 11 Oct 2011 13:56:20 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:51518) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RDgYs-00011m-Ce for emacs-devel@gnu.org; Tue, 11 Oct 2011 13:56:19 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RDgYr-0006PU-Er for emacs-devel@gnu.org; Tue, 11 Oct 2011 13:56:18 -0400 Original-Received: from smtprelay-b11.telenor.se ([62.127.194.20]:53920) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RDgYp-0006Ox-VR; Tue, 11 Oct 2011 13:56:16 -0400 Original-Received: from iph5.telenor.se (iph5.telenor.se [195.54.127.136]) by smtprelay-b11.telenor.se (Postfix) with ESMTP id D9B3DEA353; Tue, 11 Oct 2011 19:56:12 +0200 (CEST) X-SENDER-IP: [85.225.45.201] X-LISTENER: [smtp.bredband.net] X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AtZeAHOClE5V4S3JPGdsb2JhbABDiTycdYF6GQEBAQE3MoFTAQEEATgeIgEFCwshFg8JAwIBAgEbDAoUBg0BBwEBh3oCuGOHTASZHYws X-IronPort-AV: E=Sophos;i="4.68,524,1312149600"; d="scan'208";a="51960328" Original-Received: from c-c92de155.25-1-64736c10.cust.bredbandsbolaget.se (HELO coolsville.localdomain) ([85.225.45.201]) by iph5.telenor.se with ESMTP; 11 Oct 2011 19:56:12 +0200 Original-Received: from [172.20.199.13] (zeplin [172.20.199.13]) by coolsville.localdomain (Postfix) with ESMTPSA id 543807FA058; Tue, 11 Oct 2011 19:56:11 +0200 (CEST) User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:5.0) Gecko/20110624 Thunderbird/5.0 In-Reply-To: <87sjn03tzx.fsf@thinkpad.tsdh.de> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 62.127.194.20 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:144904 Archived-At: Tassilo Horn skrev 2011-10-11 08:46: > For me and I guess for most users, localhost:0, unix:0 (*), :0.0, and :0 > are all the same in practice, only localhost:1 or :2 actually mean other > displays. So I'd simply strip localhost and unix before the colon and > dot-zeros. (Maybe there should be an option for that, or some lisp > function that would be called to transform the display name if it is > defined...) > It is probably better to use some heruistics to see if two displays are really the same. If the root window id and the default visual id are the same, they probably are the same display. You can throw in protocol version, vendor string, screen dimension checks also. Jan D.