]> git.eshelyaron.com Git - emacs.git/commit
Enable DND handlers to receive more than one URI at a time
authorPo Lu <luangruo@yahoo.com>
Thu, 26 Oct 2023 11:37:58 +0000 (11:37 +0000)
committerPo Lu <luangruo@yahoo.com>
Thu, 26 Oct 2023 11:38:18 +0000 (11:38 +0000)
commit11f44ec6dda8660ad5270ee7c76d8b48062dc327
treebdb8d5e9f59c934b258a922f2f4701923cff93a7
parentb62ad00981ec98fc07fd798a4e6e75c90aad9200
Enable DND handlers to receive more than one URI at a time

* doc/lispref/frames.texi (Drag and Drop): Illustrate the effect
of the dnd-multiple-handler property and how convergent handlers
are reconciled.

* etc/NEWS (Lisp Changes in Emacs 30.1): Announce this change.

* lisp/dnd.el (dnd-protocol-alist): Bring doc string up to date.
(dnd-handle-one-url): Obsolete this function.
(dnd-handle-multiple-urls): New function.

* lisp/pgtk-dnd.el (pgtk-dnd-handle-uri-list)
(pgtk-dnd-handle-file-name):

* lisp/term/android-win.el (android-handle-dnd-event):

* lisp/term/haiku-win.el (haiku-drag-and-drop):

* lisp/term/ns-win.el (ns-drag-n-drop):

* lisp/term/w32-win.el (w32-handle-dropped-file):

* lisp/x-dnd.el (x-dnd-handle-uri-list, x-dnd-handle-file-name):
Reimplement in terms of `dnd-handle-multiple-uris'.

* lisp/term/pgtk-win.el (pgtk-drag-n-drop)
(pgtk-drag-n-drop-other-frame, pgtk-drag-n-drop-as-text): Efface
detritus that remained after the removal of the old PGTK drag
and drop implementation.

* test/lisp/dnd-tests.el (ert-x, dnd-tests-list-1)
(dnd-tests-list-2, dnd-tests-list-3, dnd-tests-list-4)
(dnd-tests-local-file-function, dnd-tests-remote-file-function)
(dnd-tests-http-scheme-function, dnd-tests-browse-url-handler)
(dnd-tests-receive-multiple-urls): New tests.
doc/lispref/frames.texi
etc/NEWS
lisp/dnd.el
lisp/pgtk-dnd.el
lisp/term/android-win.el
lisp/term/haiku-win.el
lisp/term/ns-win.el
lisp/term/pgtk-win.el
lisp/term/w32-win.el
lisp/x-dnd.el
test/lisp/dnd-tests.el