emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: `M-x yank-media'


From: Lars Ingebrigtsen
Subject: Re: `M-x yank-media'
Date: Sun, 07 Nov 2021 15:04:36 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux)

Eli Zaretskii <eliz@gnu.org> writes:

>> (gui-get-selection 'CLIPBOARD 'image/png)
>> 
>> and then some slight massaging; see yank-media--get-selection.
>
> I cannot figure out from that code what kind of "data" is expected
> from the above call.  For example, if the data in the clipboard is an
> image?

Yes, on GNU/Linux, that call will return a string containing the image
data. 

> Then that's non-portable, because this stuff is not standardized
> enough, AFAIK.  We need more layers to hide platforms-specifics, I
> think.

Yup.  (Or rather, non-Linux systems should emulate Linux here somewhat.)

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no



reply via email to

[Prev in Thread] Current Thread [Next in Thread]