From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Chong Yidong Newsgroups: gmane.emacs.devel Subject: Re: X selections and multi tty Date: Thu, 26 May 2011 23:43:09 -0400 Message-ID: <87fwo0repe.fsf@stupidchicken.com> References: <87hb8h2i3b.fsf@stupidchicken.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1306467799 4587 80.91.229.12 (27 May 2011 03:43:19 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 27 May 2011 03:43:19 +0000 (UTC) Cc: emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri May 27 05:43:16 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 1QPnxD-0003GC-WA for ged-emacs-devel@m.gmane.org; Fri, 27 May 2011 05:43:16 +0200 Original-Received: from localhost ([::1]:45069 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QPnxD-0004Jx-LR for ged-emacs-devel@m.gmane.org; Thu, 26 May 2011 23:43:15 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:55262) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QPnxB-0004Jq-6s for emacs-devel@gnu.org; Thu, 26 May 2011 23:43:13 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QPnxA-0002et-AY for emacs-devel@gnu.org; Thu, 26 May 2011 23:43:13 -0400 Original-Received: from vm-emlprdomr-05.its.yale.edu ([130.132.50.146]:57165) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QPnxA-0002cC-8N for emacs-devel@gnu.org; Thu, 26 May 2011 23:43:12 -0400 Original-Received: from furball (dhcp128036226147.central.yale.edu [128.36.226.147]) (authenticated bits=0) by vm-emlprdomr-05.its.yale.edu (8.14.4/8.14.4) with ESMTP id p4R3hAT7017670 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Thu, 26 May 2011 23:43:10 -0400 Original-Received: by furball (Postfix, from userid 1000) id D5352160665; Thu, 26 May 2011 23:43:09 -0400 (EDT) In-Reply-To: (Stefan Monnier's message of "Thu, 26 May 2011 21:47:05 -0300") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) X-Scanned-By: MIMEDefang 2.71 on 130.132.50.146 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 130.132.50.146 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:139753 Archived-At: Stefan Monnier writes: > I think it only checks to see if it owns the selection *on the same > "display"*, just via some other "terminal" (since several terminals can > share the same display). On second thought, I'm still a bit confused. When you say that two terminals can share the same display, are you literally referring to pointers to X display structures? i.e. t1->display_info.x->display == t2->display_info.x->display with t1 not the same terminal as t2? I don't think that's possible, since the (Display *) pointers are received from XOpenDisplay in x_term_init, and each x_display_info has a one to one correspondences with a terminal. By "display", I think you're referring to equivalence under same_x_server(), but with different (Display *) pointers, right? If that's the case, making Vselection_alist a terminal parameter is exactly TRT, since interactions with the X server for selection operations are all done with (Display *).