]> git.eshelyaron.com Git - emacs.git/commit
Add easier-to-use interfaces for initiating drag-and-drop
authorPo Lu <luangruo@yahoo.com>
Fri, 3 Jun 2022 04:32:17 +0000 (12:32 +0800)
committerPo Lu <luangruo@yahoo.com>
Fri, 3 Jun 2022 04:32:30 +0000 (12:32 +0800)
commite65647a70e5c055c4cdab004d671c198c7a1d3ce
treee9a0d3e093911c9695fad11d21674d0989aab1da
parent1d5eb67c6a87bcf155429b11af98de913e901dd9
Add easier-to-use interfaces for initiating drag-and-drop

The previous interface required that users know intricacies of
the data types used to transfer data on each platform Emacs
supports.

* doc/lispref/frames.texi (Drag and Drop): Document new
functions.
* lisp/dired.el (dired-last-dragged-remote-file)
(dired-remove-last-dragged-local-file): Delete functions.
(dired-mouse-drag): Use `dnd-begin-file-drag'.
* lisp/dnd.el (dnd-last-dragged-remote-file)
(dnd-remove-last-dragged-remote-file): New variables and
functions.
(dnd-begin-text-drag, dnd-begin-file-drag): New functions.
* src/xterm.c (x_dnd_begin_drag_and_drop): Add porting note.
doc/lispref/frames.texi
lisp/dired.el
lisp/dnd.el
src/xterm.c