Fix dnd-tests on builds without X

* test/lisp/dnd-tests.el (x-get-selection-internal): New
function declaration.
This commit is contained in:
Po Lu 2022-06-09 10:22:14 +08:00
parent 8d4551cbdb
commit 7e41b4aa23

View file

@ -72,6 +72,8 @@
(signal 'error (list "invalid selection" data)))
(setf (alist-get type dnd-tests-selection-table) data))))
(declare-function x-get-selection-internal "xselect.c")
(defun dnd-tests-verify-selection-data (type)
"Return the data of the drag-and-drop selection converted to TYPE."
(if (eq window-system 'x)