summaryrefslogtreecommitdiff
path: root/test/lisp/emacs-lisp
diff options
context:
space:
mode:
authorPo Lu <luangruo@yahoo.com>2022-07-02 09:06:36 +0800
committerPo Lu <luangruo@yahoo.com>2022-07-02 09:06:36 +0800
commiteb6d74a26c64e6aa444f21b12a7ab9951a00bfa5 (patch)
tree728d93e2ab3145473698f02b2726a087feb52005 /test/lisp/emacs-lisp
parent154634dcf0efb3e304b077ba532ae11ab8ed724d (diff)
downloademacs-eb6d74a26c64e6aa444f21b12a7ab9951a00bfa5.tar.gz
emacs-eb6d74a26c64e6aa444f21b12a7ab9951a00bfa5.tar.bz2
emacs-eb6d74a26c64e6aa444f21b12a7ab9951a00bfa5.zip
Return the correct action from the Lisp side of drag-and-drop
* lisp/x-dnd.el (x-dnd-handle-drag-n-drop-event): Select `window' when handling internal DND events. (x-dnd-handle-unsupported-drop): Return an appropriate action. * src/keyboard.c (kbd_buffer_get_event): * src/termhooks.h (enum event_kind): Delete `UNSUPPORTED_DROP_EVENT'. * src/xterm.c (x_dnd_send_unsupported_drop): Set flags instead of recording input event. (x_clear_dnd_monitors): Rename to `x_clear_dnd_variables'. Also clear unsupported drop data. (x_dnd_begin_drag_and_drop): Run unsupported drop function inline (and safely), and use its return value if it returned a symbol. (syms_of_xterm): Update doc string of `x-dnd-unsupported-drop-function'. * src/xterm.h: Update declarations.
Diffstat (limited to 'test/lisp/emacs-lisp')
0 files changed, 0 insertions, 0 deletions