From 41b1fa05c7b779b99f891c5307d2b00f925824b3 Mon Sep 17 00:00:00 2001 From: Lars Ingebrigtsen Date: Mon, 8 Nov 2021 12:27:01 +0100 Subject: [PATCH] Switch yank-media--get-selection back to the backend function * lisp/yank-media.el (yank-media--get-selection): Switch back to gui-backend-get-selection until gui-get-selection is re-fixed. --- lisp/yank-media.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/yank-media.el b/lisp/yank-media.el index 070a81b8c70..38a56684de9 100644 --- a/lisp/yank-media.el +++ b/lisp/yank-media.el @@ -81,7 +81,7 @@ all the different selection types." (gui-get-selection 'CLIPBOARD 'TARGETS))) (defun yank-media--get-selection (data-type) - (when-let ((data (gui-get-selection 'CLIPBOARD data-type))) + (when-let ((data (gui-backend-get-selection 'CLIPBOARD data-type))) (if (string-match-p "\\`text/" (symbol-name data-type)) (yank-media-types--format data-type data) data))) -- 2.39.2