]> git.eshelyaron.com Git - emacs.git/commit
Fix drag-and-drop of files with multibyte filenames
authorPo Lu <luangruo@yahoo.com>
Sun, 5 Jun 2022 07:34:49 +0000 (15:34 +0800)
committerPo Lu <luangruo@yahoo.com>
Sun, 5 Jun 2022 07:38:23 +0000 (15:38 +0800)
commit6011d39b6a4bc659da364255bcae22c4e6ef3a3f
tree785eefe49cab4047016696287f4788be55e2a424
parent993853531aebb303870d6ff1ba7db2007d464b63
Fix drag-and-drop of files with multibyte filenames

* lisp/dired.el (dired-mouse-drag): Fix re-signalling of errors.

* lisp/select.el (xselect-convert-to-filename):
(xselect-convert-to-text-uri-list):
(xselect-convert-to-dt-netfile): Encode in raw-text-unix.

* src/xgselect.c (suppress_xg_select, release_xg_select): New
functions.
(xg_select): Respect xg_select suppression by delegating to
pselect.
* src/xgselect.h: Update prototypes.

* src/xterm.c (x_dnd_begin_drag_and_drop): Suppress xg_select
during the nested event loop.
(handle_one_xevent): Handle cases where hold_quit is nil inside
a selection event handler during DND.
lisp/dired.el
lisp/select.el
src/xgselect.c
src/xgselect.h
src/xterm.c