Variable: yank-media-preferred-types
yank-media-preferred-types is a variable defined in yank-media.el.gz.
Value
(application/x-libreoffice-tsvc image/png image/jpeg text/html)
Documentation
List of MIME types in the order of preference.
Each element in the list should be a symbol to choose that MIME type
exclusively, or a function of one argument and should return the list of
MIME types to use in order of their priority or nil if no preferred type
is found.
Major-mode authors can change this variable to influence the selection
process, or by directly changing the variable
yank-media-autoselect-function(var)/yank-media-autoselect-function(fun).
Probably introduced at or before Emacs version 31.1.
Source Code
;; Defined in /usr/src/emacs/lisp/yank-media.el.gz
(defvar yank-media-preferred-types
`(;; Check first since LibreOffice also puts a PNG image in the
;; clipboard when a table cell is copied.
application/x-libreoffice-tsvc
;; Give PNG more priority.
image/png
image/jpeg
;; These are files copied/cut to the clipboard from a file manager
;; in a GNU/Linux and/or BSD environment.
,@(when (memq window-system '(x pgtk))
(list (lambda (mimetypes)
(ensure-list
(seq-find (lambda (type)
(string-match-p "x-special/\\(gnome\\|KDE\\|mate\\)-copied-files"
(symbol-name type)))
mimetypes)))))
;; FIXME: We should have a way to handle text/rtf.
text/html)
"List of MIME types in the order of preference.
Each element in the list should be a symbol to choose that MIME type
exclusively, or a function of one argument and should return the list of
MIME types to use in order of their priority or nil if no preferred type
is found.
Major-mode authors can change this variable to influence the selection
process, or by directly changing the variable
`yank-media-autoselect-function'.")