From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: x-selection-exists-p vs x-get-selection Date: Sun, 04 May 2008 21:33:16 +0300 Message-ID: References: <002501c8ad70$af83c510$0200a8c0@us.oracle.com> Reply-To: Eli Zaretskii NNTP-Posting-Host: lo.gmane.org X-Trace: ger.gmane.org 1209926041 20352 80.91.229.12 (4 May 2008 18:34:01 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 4 May 2008 18:34:01 +0000 (UTC) Cc: drew.adams@oracle.com, emacs-devel@gnu.org To: YAMAMOTO Mitsuharu Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun May 04 20:34:37 2008 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1Jsj2i-0002qP-Mz for ged-emacs-devel@m.gmane.org; Sun, 04 May 2008 20:34:36 +0200 Original-Received: from localhost ([127.0.0.1]:35994 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Jsj20-0008CM-U4 for ged-emacs-devel@m.gmane.org; Sun, 04 May 2008 14:33:52 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Jsj1O-0007Xx-NG for emacs-devel@gnu.org; Sun, 04 May 2008 14:33:14 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Jsj1N-0007WO-Lw for emacs-devel@gnu.org; Sun, 04 May 2008 14:33:13 -0400 Original-Received: from [199.232.76.173] (port=59298 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Jsj1N-0007W6-C9 for emacs-devel@gnu.org; Sun, 04 May 2008 14:33:13 -0400 Original-Received: from mtaout4.012.net.il ([84.95.2.10]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Jsj1N-00057y-Kv for emacs-devel@gnu.org; Sun, 04 May 2008 14:33:13 -0400 Original-Received: from HOME-C4E4A596F7 ([84.229.228.217]) by i_mtaout4.012.net.il (HyperSendmail v2004.12) with ESMTPA id <0K0C000MCXJ90ZL3@i_mtaout4.012.net.il> for emacs-devel@gnu.org; Sun, 04 May 2008 21:47:35 +0300 (IDT) In-reply-to: X-012-Sender: halo1@inter.net.il X-detected-kernel: by monty-python.gnu.org: Solaris 9.1 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:96445 Archived-At: > Date: Sun, 04 May 2008 15:34:22 +0900 > From: YAMAMOTO Mitsuharu > Cc: Drew Adams , > emacs-devel@gnu.org > > FWIW, macselect.c for the Mac Carbon port is trying to simulate the > semantics on X11 by reusing the most of the code in xselect.c. On > Mac, there are multiple interapplication storages called "scrap"s, and > the clipboard is actually a particular scrap named > "com.apple.scrap.clipboard". The selection such as PRIMARY or > SECONDARY may or may not be associated with a scrap. AFAIK, this cannot be done on Windows, since there's only one such storage buffer, called the clipboard. Each time you cop or cut text from some application, the clipboard contents gets automatically overwritten with the new material. And there's no meaning to ``owner'' of the clipboard contents, since the stuff is already in the clipboard and is ``owned'' by the GUI subsystem of the OS.