From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Drew Adams" Newsgroups: gmane.emacs.devel Subject: x-selection-exists-p vs x-get-selection Date: Sat, 3 May 2008 15:54:46 -0700 Message-ID: <002501c8ad70$af83c510$0200a8c0@us.oracle.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1209855368 15649 80.91.229.12 (3 May 2008 22:56:08 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 3 May 2008 22:56:08 +0000 (UTC) To: "'Emacs-Devel'" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun May 04 00:56:43 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 1JsQeo-0005wr-IT for ged-emacs-devel@m.gmane.org; Sun, 04 May 2008 00:56:42 +0200 Original-Received: from localhost ([127.0.0.1]:50398 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JsQe7-0005Fs-5l for ged-emacs-devel@m.gmane.org; Sat, 03 May 2008 18:55:59 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JsQe3-0005Fl-W4 for emacs-devel@gnu.org; Sat, 03 May 2008 18:55:56 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JsQe2-0005FY-CK for emacs-devel@gnu.org; Sat, 03 May 2008 18:55:55 -0400 Original-Received: from [199.232.76.173] (port=54401 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JsQe2-0005FV-AG for emacs-devel@gnu.org; Sat, 03 May 2008 18:55:54 -0400 Original-Received: from agminet01.oracle.com ([141.146.126.228]) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1JsQe1-0002sa-SG for emacs-devel@gnu.org; Sat, 03 May 2008 18:55:54 -0400 Original-Received: from agmgw1.us.oracle.com (agmgw1.us.oracle.com [152.68.180.212]) by agminet01.oracle.com (Switch-3.2.4/Switch-3.1.7) with ESMTP id m43Mtpar012787 for ; Sat, 3 May 2008 17:55:51 -0500 Original-Received: from acsmt351.oracle.com (acsmt351.oracle.com [141.146.40.151]) by agmgw1.us.oracle.com (Switch-3.2.0/Switch-3.2.0) with ESMTP id m43MdeGV009193 for ; Sat, 3 May 2008 16:55:50 -0600 Original-Received: from inet-141-146-46-1.oracle.com by acsmt350.oracle.com with ESMTP id 3665492831209855275; Sat, 03 May 2008 15:54:35 -0700 Original-Received: from dradamslap1 (/141.144.81.43) by bhmail.oracle.com (Oracle Beehive Gateway v4.0) with ESMTP ; Sat, 03 May 2008 15:54:34 -0700 X-Mailer: Microsoft Office Outlook 11 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3198 Thread-Index: AcitcK8FHjbzQQgxR8a0gVwbbrqCjA== X-Brightmail-Tracker: AAAAAQAAAAI= X-Brightmail-Tracker: AAAAAQAAAAI= X-Whitelist: TRUE X-Whitelist: TRUE X-detected-kernel: by monty-python.gnu.org: Linux 2.4-2.6 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:96396 Archived-At: I don't understand `x-selection-exists-p'. I select some text with meta mouse clicks or drags, to create a secondary selection. (x-get-selection 'SECONDARY) returns that secondary-selection text, as I would expect. But (x-selection-exists-p 'SECONDARY) returns nil - I expected t. The doc string says: "Whether there is an owner for the given X Selection." I am on Windows, with `x-select-enable-clipboard' = t, if that is important. Is there a bug here? If not can someone please enlighten me? How should I understand `x-selection-exists-p'? It is used, for instance, in menu-bar.el, to determine whether to enable some selection menus, such as Paste.