]> git.eshelyaron.com Git - emacs.git/commit
Support dragging multiple files on NS
authorPo Lu <luangruo@yahoo.com>
Sat, 4 Jun 2022 07:45:41 +0000 (15:45 +0800)
committerPo Lu <luangruo@yahoo.com>
Sat, 4 Jun 2022 07:45:41 +0000 (15:45 +0800)
commit2ce686c049a7a35cdc3eb87626d8a94539388a35
treef15e65e4c65ec8b2b43a3e017871457ba96e8da9
parent1289d0c3dd964a501ea0b039c0ce9bc39ec47caa
Support dragging multiple files on NS

This has to use a deprecated pasteboard type, since Emacs uses
the "old" (but not deprecated) dragImage: method for
drag-and-drop, which can't drop file URLs.

* lisp/term/ns-win.el (x-begin-drag): Update accordingly.
* src/nsselect.m (ns_decode_data_to_pasteboard):
(Fns_begin_drag): Allow files to be a list of filenames as well.
lisp/term/ns-win.el
src/nsselect.m