From: "Drew Adams" <drew.adams@oracle.com>
To: "'Emacs-Devel'" <emacs-devel@gnu.org>
Subject: x-selection-exists-p vs x-get-selection
Date: Sat, 3 May 2008 15:54:46 -0700 [thread overview]
Message-ID: <002501c8ad70$af83c510$0200a8c0@us.oracle.com> (raw)
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.
next reply other threads:[~2008-05-03 22:54 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-05-03 22:54 Drew Adams [this message]
2008-05-04 4:02 ` x-selection-exists-p vs x-get-selection Eli Zaretskii
2008-05-04 6:34 ` YAMAMOTO Mitsuharu
2008-05-04 18:33 ` Eli Zaretskii
2008-05-04 20:43 ` Jason Rumney
2008-05-04 23:23 ` Drew Adams
2008-05-05 0:59 ` YAMAMOTO Mitsuharu
2008-05-04 8:33 ` Drew Adams
2008-05-04 18:29 ` Eli Zaretskii
2008-05-04 23:30 ` Drew Adams
2008-05-05 3:10 ` Eli Zaretskii
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='002501c8ad70$af83c510$0200a8c0@us.oracle.com' \
--to=drew.adams@oracle.com \
--cc=emacs-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.