[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: `M-x yank-media'
From: |
Eli Zaretskii |
Subject: |
Re: `M-x yank-media' |
Date: |
Sun, 07 Nov 2021 15:42:51 +0200 |
> From: Lars Ingebrigtsen <larsi@gnus.org>
> Cc: emacs-devel@gnu.org, Alan Third <alan@idiocy.org>
> Date: Sun, 07 Nov 2021 14:32:42 +0100
>
> Eli Zaretskii <eliz@gnu.org> writes:
>
> > What does this require from the clipboard to work? What are the
> > assumptions?
>
> It's basically this on GNU/Linux:
>
> (gui-get-selection 'CLIPBOARD 'TARGETS)
> =>
> [TIMESTAMP TARGETS MULTIPLE SAVE_TARGETS text/html text/_moz_htmlinfo
> text/_moz_htmlcontext image/png image/jpeg image/bmp image/x-bmp
> image/x-MS-bmp image/x-icon image/x-ico image/x-win-bitmap
> image/vnd\.microsoft\.icon application/ico image/ico image/icon text/ico
> image/tiff]
>
> This lists the available media types.
But those are just the types. How do we fetch the stuff afterwards?
> I haven't looked at Windows, but I'm guessing it has to grow a similar
> set of capabilities.
The TARGETS thingy is already supported, has been for a long time:
(gui-get-selection 'CLIPBOARD 'TARGETS)
=>
[DataObject text/html HTML\ Format text/_moz_htmlinfo text/_moz_htmlcontext
application/x-moz-file-promise-url application/x-moz-file-promise-dest-filename
FILE_NAMES Preferred\ DropEffect application/x-moz-nativeimage DIB Ole\
Private\ Data BITMAP nil]
(This is after "Copy Image" in Firefox.) But I suspect that's not all
of the story.
> > AFAIK, that's what "other applications" do: they paste the content
> > from the clipboard regardless of the type. Fine-tuned behavior, where
> > the user can select exactly what he/she wants to past and how, is then
> > available from a context menu.
>
> Yes, but it would just be too surprising in an Emacs context, in my
> opinion. Changing how something as fundamental as `C-y' works here
> would potentially be extremely annoying.
Let's see what others think.
- Re: `M-x yank-media', (continued)
- Re: `M-x yank-media', T.V Raman, 2021/11/06
- Re: `M-x yank-media', Eli Zaretskii, 2021/11/07
- Re: `M-x yank-media', Lars Ingebrigtsen, 2021/11/07
- Re: `M-x yank-media', Eli Zaretskii, 2021/11/07
- Re: `M-x yank-media', Lars Ingebrigtsen, 2021/11/07
- Re: `M-x yank-media', Po Lu, 2021/11/07
- Re: `M-x yank-media', Lars Ingebrigtsen, 2021/11/07
- Re: `M-x yank-media', Po Lu, 2021/11/07
- Re: `M-x yank-media', Lars Ingebrigtsen, 2021/11/07
- Re: `M-x yank-media', Po Lu, 2021/11/07
- Re: `M-x yank-media',
Eli Zaretskii <=
- Re: `M-x yank-media', Lars Ingebrigtsen, 2021/11/07
- Re: `M-x yank-media', Eli Zaretskii, 2021/11/07
- Re: `M-x yank-media', Lars Ingebrigtsen, 2021/11/07
- Re: `M-x yank-media', Stefan Monnier, 2021/11/07
- Re: `M-x yank-media', Lars Ingebrigtsen, 2021/11/07
- Re: `M-x yank-media', Eli Zaretskii, 2021/11/07
- Re: `M-x yank-media', Lars Ingebrigtsen, 2021/11/07
- Re: `M-x yank-media', Alan Third, 2021/11/23
- Re: `M-x yank-media', Lars Ingebrigtsen, 2021/11/24
- Re: `M-x yank-media', Alan Third, 2021/11/24