From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Ken Raeburn Newsgroups: gmane.emacs.devel Subject: Re: Killing a frame sometimes kills emacs Date: Thu, 1 Sep 2011 15:30:38 -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> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v1084) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1314905456 11346 80.91.229.12 (1 Sep 2011 19:30:56 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 1 Sep 2011 19:30:56 +0000 (UTC) Cc: Emacs Dev To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Sep 01 21:30:52 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 1QzCyS-0003ku-7R for ged-emacs-devel@m.gmane.org; Thu, 01 Sep 2011 21:30:52 +0200 Original-Received: from localhost ([::1]:52427 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QzCyR-0003l6-NZ for ged-emacs-devel@m.gmane.org; Thu, 01 Sep 2011 15:30:51 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:50547) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QzCyP-0003kp-24 for emacs-devel@gnu.org; Thu, 01 Sep 2011 15:30:49 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QzCyO-0006Q3-4K for emacs-devel@gnu.org; Thu, 01 Sep 2011 15:30:49 -0400 Original-Received: from mail-vw0-f41.google.com ([209.85.212.41]:45536) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QzCyM-0006PY-2m; Thu, 01 Sep 2011 15:30:46 -0400 Original-Received: by vwm42 with SMTP id 42so2036271vwm.0 for ; Thu, 01 Sep 2011 12:30:44 -0700 (PDT) Original-Received: by 10.52.72.201 with SMTP id f9mr261588vdv.12.1314905444422; Thu, 01 Sep 2011 12:30:44 -0700 (PDT) Original-Received: from [10.1.12.29] (vpn.permabit.com [204.246.225.2]) by mx.google.com with ESMTPS id db1sm58955vdb.14.2011.09.01.12.30.43 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 01 Sep 2011 12:30:43 -0700 (PDT) In-Reply-To: <838vq8e0x5.fsf@gnu.org> X-Mailer: Apple Mail (2.1084) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 209.85.212.41 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:143700 Archived-At: On Sep 1, 2011, at 11:29, Eli Zaretskii wrote: >> Date: Thu, 01 Sep 2011 14:47:09 +0200 >> From: "Jan D." >> CC: Andreas Schwab , Eli Zaretskii = ,=20 >> emacs-devel@gnu.org >>=20 >> =46rom Emacs point of view, localhost:0 and unix:0 and :0 are three=20= >> different displays, even if they physically are the same. >=20 > Can't we do something in Emacs so it understood that they are on the > same display? That won't fix the GTK problem, but at least it will > work around it in this particular use case. And I think it's a Good > Thing in general, no? >=20 If that's the intent of the X code... I've actually seen cases where the = hostname "unix" gets looked up, so maybe the rule is "unix means the = local host if you don't have a machine named unix". I'm not sure if = that was X11 software or something else trying to interpret $DISPLAY, = though; I was looking at DNS packet traces. In this case, ":0.0" vs ":0" is even more straightforward. According to = the X man page I just looked up, at least, the default screen number is = zero if omitted (not some changeable per-display default screen number), = so counting those two as the same should be easy. Ken=