]> git.eshelyaron.com Git - emacs.git/commit
Render default DND file name handlers more precise
authorPo Lu <luangruo@yahoo.com>
Sat, 28 Oct 2023 06:42:48 +0000 (06:42 +0000)
committerPo Lu <luangruo@yahoo.com>
Sat, 28 Oct 2023 06:42:48 +0000 (06:42 +0000)
commit897cc73c88a9da0a2477f1e61501b907eb877a5b
treeb19e02857795bb74a335fc8b965e24768beea787
parent6b229ffc6f32b111bf11242080d98022758b43e0
Render default DND file name handlers more precise

* lisp/dnd.el (dnd-protocol-alist): Redefine file name handlers
to match solely the local or remote URIs they understand.
(dnd-handle-multiple-urls): Prevent calling the same handler
multiple times for a single URI.

* lisp/gnus/mml.el (mml-dnd-protocol-alist): Apply an anologous
adjustment here.  Delete now redundant redefinition of
dnd-open-file.
(mml-dnd-attach-file): Inquire whether to apply the default
disposition and such only once even if more than one file is
dropped.

* test/lisp/dnd-tests.el (dnd-tests-receive-multiple-urls)
(dnd-tests-default-file-name-handlers): New tests.
lisp/dnd.el
lisp/gnus/mml.el
test/lisp/dnd-tests.el