From 19f37afe27907d189501f04cdb50fdfba0ef1761 Mon Sep 17 00:00:00 2001 From: Lars Ingebrigtsen Date: Mon, 8 Nov 2021 06:03:41 +0100 Subject: [PATCH] Fix yank-media--get-selection thinko in previous change * lisp/yank-media.el (yank-media--get-selection): Fix thinko after previous change. --- lisp/yank-media.el | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/lisp/yank-media.el b/lisp/yank-media.el index bc57e96612c..070a81b8c70 100644 --- a/lisp/yank-media.el +++ b/lisp/yank-media.el @@ -80,12 +80,11 @@ all the different selection types." (yank-media--get-selection type))))) (gui-get-selection 'CLIPBOARD 'TARGETS))) -(defun yank-media--get-selection (type) - (let ((selection-coding-system 'binary)) - (when-let ((data (gui-get-selection 'CLIPBOARD type))) - (if (string-match-p "\\`text/" (symbol-name type)) - (yank-media-types--format type data) - data)))) +(defun yank-media--get-selection (data-type) + (when-let ((data (gui-get-selection 'CLIPBOARD data-type))) + (if (string-match-p "\\`text/" (symbol-name data-type)) + (yank-media-types--format data-type data) + data))) ;;;###autoload (defun yank-media-handler (types handler) -- 2.39.2