]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix dnd-tests on builds without X
authorPo Lu <luangruo@yahoo.com>
Thu, 9 Jun 2022 02:22:14 +0000 (10:22 +0800)
committerPo Lu <luangruo@yahoo.com>
Thu, 9 Jun 2022 02:22:14 +0000 (10:22 +0800)
* test/lisp/dnd-tests.el (x-get-selection-internal): New
function declaration.

test/lisp/dnd-tests.el

index c7e537e53f9c65b41d18975e34335cdde3044ff8..c4b7567f22efe50a29b5b981a035125763d4a0b1 100644 (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)