diff options
| author | Po Lu <luangruo@yahoo.com> | 2023-10-26 11:37:58 +0000 |
|---|---|---|
| committer | Po Lu <luangruo@yahoo.com> | 2023-10-26 11:38:18 +0000 |
| commit | 11f44ec6dda8660ad5270ee7c76d8b48062dc327 (patch) | |
| tree | bdb8d5e9f59c934b258a922f2f4701923cff93a7 /etc/NEWS | |
| parent | b62ad00981ec98fc07fd798a4e6e75c90aad9200 (diff) | |
| download | emacs-11f44ec6dda8660ad5270ee7c76d8b48062dc327.tar.gz | |
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.
Diffstat (limited to 'etc/NEWS')
| -rw-r--r-- | etc/NEWS | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -1122,6 +1122,16 @@ values. * Lisp Changes in Emacs 30.1 ++++ +** Drag-and-drop functions can now be called once for compound drops. +It is now possible for drag-and-drop handler functions to respond to +drops incorporating more than one URL. Functions capable of this must +set their 'dnd-multiple-handler' symbol properties to a non-nil value. +See the Info node "(elisp)Drag and Drop". + +Incident to this change, the function 'dnd-handle-one-url' has been +made obsolete, for it cannot take these new handlers into account. + ** New function 're-disassemble' to see the innards of a regexp. If you compiled with '--enable-checking', you can use this to help debug either your regexp performance problems or the regexp engine. |
