Jamie Zawinski wrote:
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.
Selection values are converted to lisp values then dispatched
according to selection-converter-in-alist. Currently, no converter is
registered for the TARGETS type, but all of the other machinery is in
place. Simply pushing a no-op converter onto the alist appears to
suffice:
(defun select-convert-from-targets (selection type value)
value)
(push '(TARGETS . select-convert-from-targets)
selection-converter-in-alist)
--
Glynn Clements <glynn.clements(a)virgin.net>