]> git.eshelyaron.com Git - emacs.git/commit
Make yank-media auto select the best mime type
authorVisuwesh <visuweshm@gmail.com>
Thu, 13 Feb 2025 11:13:06 +0000 (16:43 +0530)
committerEshel Yaron <me@eshelyaron.com>
Sun, 23 Feb 2025 08:10:11 +0000 (09:10 +0100)
commit5044469255e5ad8a28c27178ea0f830771ffa8e1
tree54ba1dc6c266e804acaaecb6f782758c310ff9f9
parent767a0558c673c4ee9d22219466a726f2ba6ccb73
Make yank-media auto select the best mime type

* lisp/yank-media.el (yank-media-preferred-types): Add new
variable that holds the list of mime types in order of their
preference.
(yank-media-autoselect-function): Add new variable and function
to choose the most preferred media type.
(yank-media): Make 'yank-media' choose the most preferred mime
type by default.
* doc/emacs/killing.texi (Clipboard):
* doc/lispref/frames.texi (Yanking Media): Document the new
behaviour, and the new variables.
* etc/NEWS: Announce the change.  (Bug#75116)

(cherry picked from commit 0ee50a3420fb8df8f3477dac610dcd53c633fff5)
doc/emacs/killing.texi
doc/lispref/frames.texi
lisp/yank-media.el