diff options
author | Po Lu <luangruo@yahoo.com> | 2021-11-24 12:48:01 +0000 |
---|---|---|
committer | Po Lu <luangruo@yahoo.com> | 2021-11-24 12:58:39 +0000 |
commit | fc35928ec2b3be40ff7323515f948fc82ca487ca (patch) | |
tree | 0882f12fdad3aab03d56e923905d8c25582ad282 /lisp/emacs-lisp | |
parent | 7878c7f596d69efb68501503da391ed645ae151e (diff) | |
download | emacs-fc35928ec2b3be40ff7323515f948fc82ca487ca.tar.gz emacs-fc35928ec2b3be40ff7323515f948fc82ca487ca.tar.bz2 emacs-fc35928ec2b3be40ff7323515f948fc82ca487ca.zip |
Make `yank-media' work on Haiku
This works with what WebPositive does with images, at least. I don't
know about other programs, but Haiku doesn't seem to standardize this
very well.
* lisp/term/haiku-win.el (haiku--selection-type-to-mime): Handle
regular symbols.
(gui-backend-get-selection): Handle special type `TARGETS'.
(gui-backend-set-selection): Always clear clipboard.
* src/haiku_select.cc (BClipboard_get_targets): New function.
(BClipboard_set_data): New argument `clear'. All callers
changed.
(BClipboard_set_system_data)
(BClipboard_set_primary_selection_data)
(BClipboard_set_secondary_selection_data): New argument `clear'.
(BClipboard_system_targets, BClipboard_primary_targets)
(BClipboard_secondary_targets): New functions.
* src/haikuselect.c (haiku_selection_data_1): New function.
(Fhaiku_selection_targets): New function.
(Fhaiku_selection_put): Allow controlling if the clipboard is
cleared.
(syms_of_haikuselect): New symbols and subrs.
* src/haikuselect.h (BClipboard_set_system_data)
(BClipboard_set_primary_selection_data)
(BClipboard_set_secondary_selection_data): New argument `clear'.
(BClipboard_system_targets, BClipboard_primary_targets)
(BClipboard_secondary_targets): New functions.
Diffstat (limited to 'lisp/emacs-lisp')
0 files changed, 0 insertions, 0 deletions