mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-02-22 21:07:36 +00:00
Expand register-yank-media-handler doc string
* lisp/yank-media.el (register-yank-media-handler): Expand doc string.
This commit is contained in:
parent
cadf325575
commit
9d54b1222c
1 changed files with 5 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue