Tags: patch This is a continuation of the long thread in emacs-devel: https://yhetil.org/emacs-devel/79fc91f3-c2c3-44db-9817-595808917f26@cas.cat/ This message provides a summary: https://yhetil.org/87r06cj2nd.fsf@gmail.com Ihor wrote: > The only comment is that leaving an option to return a list of types > rather than only a single type will make things more flexible. And this is now done in the attached patch. Before I go about writing NEWS and updating the manual, what do you think about the attached instead? I think the variable yank-media-preferred-types gives a more granular control for major-mode authors than (add-function (local 'yank-media-autoselect-function) ...)