]> git.eshelyaron.com Git - emacs.git/commit
Autodetect coding system when yanking media
authorRobert Pluim <rpluim@gmail.com>
Thu, 22 Jun 2023 14:59:19 +0000 (16:59 +0200)
committerRobert Pluim <rpluim@gmail.com>
Thu, 13 Jul 2023 13:37:16 +0000 (15:37 +0200)
commit587efce9faeb1a0b23b8367c02264a6f988832d0
tree86098e1b97ded49f582aabe43795f0f8529c37ff
parente0244f58042740c8fe914e7abe5b02611b176bc2
Autodetect coding system when yanking media

Some browers send eg 'text/html' selections formatted as UTF-8, but
with a type of STRING, which actually means iso-latin-1.  Autodetect
the correct coding system to use by calling 'gui-get-selection'.

* lisp/yank-media.el (yank-media--get-selection): Call
'gui-get-selection' instead of 'gui-backend-get-selection'.
lisp/yank-media.el