emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

x-selection-exists-p vs x-get-selection


From: Drew Adams
Subject: x-selection-exists-p vs x-get-selection
Date: Sat, 3 May 2008 15:54:46 -0700

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.






reply via email to

[Prev in Thread] Current Thread [Next in Thread]