From 9d54b1222cfbd8d64dcd93ec1a76863ae42ee339 Mon Sep 17 00:00:00 2001 From: Lars Ingebrigtsen Date: Sun, 7 Nov 2021 00:24:13 +0100 Subject: [PATCH] Expand register-yank-media-handler doc string * lisp/yank-media.el (register-yank-media-handler): Expand doc string. --- lisp/yank-media.el | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lisp/yank-media.el b/lisp/yank-media.el index cafc198be85..66eb23430ec 100644 --- a/lisp/yank-media.el +++ b/lisp/yank-media.el @@ -91,7 +91,11 @@ the `register-yank-media-handler' mechanism." (defun register-yank-media-handler (types handler) "Register HANDLER for dealing with `yank-media' actions for TYPES. TYPES should be a MIME media type symbol, a regexp, or a list -that can contain both symbols and regexps." +that can contain both symbols and regexps. + +HANDLER is a function that will be called with two arguments: The +MIME type (a symbol on the form `image/png') and the selection +data (a string)." (make-local-variable 'yank-media--registered-handlers) (dolist (type (ensure-list types)) (setf (alist-get type yank-media--registered-handlers nil nil #'equal) -- 2.39.2