From 7e41b4aa231ed094613fe0ea12e7ec37a396240f Mon Sep 17 00:00:00 2001 From: Po Lu Date: Thu, 9 Jun 2022 10:22:14 +0800 Subject: [PATCH] Fix dnd-tests on builds without X * test/lisp/dnd-tests.el (x-get-selection-internal): New function declaration. --- test/lisp/dnd-tests.el | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/lisp/dnd-tests.el b/test/lisp/dnd-tests.el index c7e537e53f9..c4b7567f22e 100644 --- a/test/lisp/dnd-tests.el +++ b/test/lisp/dnd-tests.el @@ -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) -- 2.39.2