Function: w32--mime-type-textual-p
w32--mime-type-textual-p is a byte-compiled function defined in
w32-win.el.gz.
Signature
(w32--mime-type-textual-p MIME-TYPE)
Documentation
Returns t if MIME-TYPE, a symbol, names a textual MIME type.
This function is intended to classify clipboard data. All MIME subtypes
of text/ are considered textual. Also those with suffixes +xml, +json,
+yaml, +json-seq. And application/xml, application/json,
application/yaml, application/json-seq.
This classification is not exhaustive. Some MIME types not listed may also be textual.
Source Code
;; Defined in /usr/src/emacs/lisp/term/w32-win.el.gz
(defun w32--mime-type-textual-p (mime-type)
"Returns t if MIME-TYPE, a symbol, names a textual MIME type.
This function is intended to classify clipboard data. All MIME subtypes
of text/ are considered textual. Also those with suffixes +xml, +json,
+yaml, +json-seq. And application/xml, application/json,
application/yaml, application/json-seq.
This classification is not exhaustive. Some MIME types not listed may
also be textual."
(string-match-p
(mapconcat #'identity w32--textual-mime-types "\\|")
(symbol-name mime-type)))