From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: `M-x yank-media' Date: Mon, 08 Nov 2021 16:29:04 +0200 Message-ID: <83czna7mbz.fsf@gnu.org> References: <877ddlt2pp.fsf@gnus.org> <87h7cnb5d9.fsf@gnus.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="33657"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: Lars Ingebrigtsen Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Mon Nov 08 15:31:26 2021 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mk5gD-0008ZA-Qn for ged-emacs-devel@m.gmane-mx.org; Mon, 08 Nov 2021 15:31:25 +0100 Original-Received: from localhost ([::1]:47674 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mk5gB-0002lz-Vt for ged-emacs-devel@m.gmane-mx.org; Mon, 08 Nov 2021 09:31:24 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:57882) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mk5e6-00015L-CI for emacs-devel@gnu.org; Mon, 08 Nov 2021 09:29:15 -0500 Original-Received: from [2001:470:142:3::e] (port=57496 helo=fencepost.gnu.org) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mk5e6-0005W8-2D; Mon, 08 Nov 2021 09:29:14 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=wkEkNW/XWJXc2G9gMnMP4xdqseMJeL10HK+ay6gyajA=; b=ROb+Si5TrDB9 jTaY6e+lh1GmnjdAUJ8toT7p3xD+POar5MYrqB8qcjuFkeVCD6OFtFRCD7glnLywlGT5Fcxx+VmCx zrl2cG4GF9BfAzv/a6uAxkN9uX0d8XZ8NJJ3EuoHLmIXCkWw3FZPpo4dGwT2LODWyUAUv65yldpaV pSR7ASIERlZ3i79qabvfXiybVpVQbtrgKBbjHGcMYx7YCz8uQY3Xrpa331szGnWoZ/d2BIqeCk0WF 4DdG11i9EdNTcnd1k9BzQhL+v/XaZMw6QWdelBGLdff6gUsGPeS+TOXzrv1+0ITs6NaxV7SR4YC/g 7Ixg/vxdEQuk1npzpO5emQ==; Original-Received: from [87.69.77.57] (port=4664 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mk5e5-0001lh-L7; Mon, 08 Nov 2021 09:29:13 -0500 In-Reply-To: <87h7cnb5d9.fsf@gnus.org> (message from Lars Ingebrigtsen on Mon, 08 Nov 2021 06:09:38 +0100) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:279039 Archived-At: > From: Lars Ingebrigtsen > Date: Mon, 08 Nov 2021 06:09:38 +0100 > > I've now also added a `yank-media-types' command -- mostly for > debugging. It lets people who are thinking about writing handlers > explore what's actually on the clipboard (Firefox, for instance, puts a > surprising amount of useful stuff there). This command seems to assume that only the data types which have support in gui-get-selection are useful. But that is not necessarily true for a command that was meant to allow snooping and tinkering. For example, after copying text from Firefox on MS-Windows, I have: (gui-get-selection 'CLIPBOARD 'TARGETS) => [DataObject text/html HTML\ Format text/_moz_htmlcontext text/_moz_htmlinfo UTF8_STRING STRING text/x-moz-url-priv Ole\ Private\ Data OEM_STRING] But "M-x yank-media-types RET" followed by "?" shows just this: Possible completions are: clipboard:STRING If this command is supposed to be for exploring the selections, then perhaps it should produce a table of all the types, and some meta-data for every supported type?