In older xemacsen (and lemacs) this worked:
(x-get-selection-internal 'PRIMARY 'TARGETS)
==> [ TARGETS TIMESTAMP TEXT STRING LENGTH FILE_NAME OWNER_OS
HOST_NAME USER CLASS NAME CLIENT_WINDOW PROCESS
COMPOUND_TEXT]
Apparently x-get-selection-internal has been replaced by
get-selection-internal, but the TARGETS type no longer works:
(get-selection-internal 'PRIMARY 'TARGETS)
==> nil
This makes it impossible to do tell what selection types other apps
support, and thus makes it way harder to do any kind of sensible
content-negotiation.
--
Jamie Zawinski
jwz(a)jwz.org
http://www.jwz.org/
jwz(a)dnalounge.com
http://www.dnalounge.com/