summaryrefslogtreecommitdiff
path: root/lisp/yank-media.el
Commit message (Collapse)AuthorAgeFilesLines
* Fix yank-media utf-16 detectionLars Ingebrigtsen2022-02-051-27/+20
| | | | | * lisp/yank-media.el (yank-media--utf-16-p): Factor out into its own function for easier testing and fix the code.
* Fix yank-media-types--format decodingLars Ingebrigtsen2022-02-051-17/+20
| | | | | * lisp/yank-media.el (yank-media-types--format): Check that we really have some nuls.
* ; Add 2022 to copyright years.Eli Zaretskii2022-01-011-1/+1
|
* Allow yank-media-types to also show the unsupported data typesLars Ingebrigtsen2021-11-091-12/+19
| | | | | * lisp/yank-media.el (yank-media-types): Make the prefix include data types not supported by the backend, too.
* Switch yank-media--get-selection back to the backend functionLars Ingebrigtsen2021-11-081-1/+1
| | | | | * lisp/yank-media.el (yank-media--get-selection): Switch back to gui-backend-get-selection until gui-get-selection is re-fixed.
* Fix yank-media--get-selection thinko in previous changeLars Ingebrigtsen2021-11-081-6/+5
| | | | | * lisp/yank-media.el (yank-media--get-selection): Fix thinko after previous change.
* Clean up the yank-media data massagingLars Ingebrigtsen2021-11-081-10/+9
| | | | | | | * lisp/yank-media.el (yank-media--get-selection): Put the nul-massaging code... (yank-media-types--format): ... here instead, and decode utf-16 better.
* Add a new debugging/exploration command `yank-media-types'Lars Ingebrigtsen2021-11-081-1/+83
| | | | | * lisp/yank-media.el (yank-media-types): New command. (yank-media-types--format): Helper command.
* Rename 'register-yank-media-handler'Lars Ingebrigtsen2021-11-081-2/+2
| | | | | | | | | * lisp/textmodes/sgml-mode.el (html-mode): * lisp/gnus/message.el (message-mode): * doc/lispref/frames.texi (Yanking Media): Adjust. * lisp/yank-media.el (yank-media): Adjust doc string. (yank-media-handler): Rename from `register-' because that may cause confusion with register.el functions.
* Fix charset issues in text/html yankingLars Ingebrigtsen2021-11-081-10/+11
| | | | | | | * lisp/yank-media.el (yank-media--get-selection): Use gui-backend-get-selection instead of the higher-level function which guesses wrong on the charset on many types. (yank-media): Fix the case where there's only one match.
* Expand register-yank-media-handler doc stringLars Ingebrigtsen2021-11-071-1/+5
| | | | * lisp/yank-media.el (register-yank-media-handler): Expand doc string.
* Fix yank-media logic when there's several handlersLars Ingebrigtsen2021-11-071-16/+18
| | | | | * lisp/yank-media.el (yank-media): Fix logic when there's several different handler functions.
* Fix typo in previous yank-media--get-selection changeLars Ingebrigtsen2021-11-061-1/+1
| | | | | * lisp/yank-media.el (yank-media--get-selection): Fix typo in previous change.
* Fix nul-terminated text/* strings from some programsLars Ingebrigtsen2021-11-061-3/+8
| | | | | * lisp/yank-media.el (yank-media--get-selection): Some programs nul-terminate text/* strings. Fix that.
* Add a framework for yanking media into EmacsLars Ingebrigtsen2021-11-061-0/+95
* doc/emacs/killing.texi (Clipboard): Refer to it. * doc/lispref/frames.texi (Yanking Media): Document the mechanism. * lisp/yank-media.el: New file. * lisp/gnus/message.el (message-mode): Register a yank handler for images. (message-insert-screenshot): Factor out image code from here... (message--yank-media-image-handler): ... to here.