]> git.eshelyaron.com Git - emacs.git/commit
Support receiving XDS drops correctly
authorPo Lu <luangruo@yahoo.com>
Fri, 1 Jul 2022 08:12:45 +0000 (16:12 +0800)
committerPo Lu <luangruo@yahoo.com>
Fri, 1 Jul 2022 08:18:50 +0000 (16:18 +0800)
commitea5f5f81dd172ce40f10cd5e276d23839c24cbc1
tree7ed2bc020142a5d95e4669e4d2add907bfd5b30d
parenta08bb27517e840e14c8bb83dc96307a8771ab990
Support receiving XDS drops correctly

* etc/NEWS: Announce new feature.  It is not yet documented.
* lisp/x-dnd.el (x-dnd-known-types): Add XdndDirectSave0.
(x-dnd-direct-save-function): New defcustom.
(x-dnd-xdnd-to-action): Add `direct-save'.
(x-dnd-maybe-call-test-function): If XDS is present, use `direct-save'.
(x-dnd-find-type): New function.
(x-dnd-handle-xdnd): Handle XDS position and drop messages.
(x-dnd-handle-direct-save): Don't use local-file-uri if nil.
(x-dnd-save-direct): New function.
(x-dnd-handle-octet-stream-for-drop):
(x-dnd-handle-xds-drop): New functions.
etc/NEWS
lisp/x-dnd.el