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.bugs Subject: bug#71909: 30.0.60; Date: Sun, 06 Oct 2024 08:59:39 +0300 Message-ID: <86o73xvkj8.fsf@gnu.org> References: <865xtnhyn6.fsf@foxmail.com> <868qv2wwyk.fsf@gnu.org> <865xq6wwkc.fsf@gnu.org> <86wmimuz18.fsf@gnu.org> <0056b65b-5cdc-4271-b717-0acc75661c17@imayhem.com> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="29971"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 71909@debbugs.gnu.org To: Cecilio Pardo Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Oct 06 08:00:20 2024 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1sxKJY-0007c1-B7 for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 06 Oct 2024 08:00:20 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sxKJE-00025B-44; Sun, 06 Oct 2024 02:00:00 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sxKJB-00024w-15 for bug-gnu-emacs@gnu.org; Sun, 06 Oct 2024 01:59:57 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sxKJA-0008TH-Ok for bug-gnu-emacs@gnu.org; Sun, 06 Oct 2024 01:59:56 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=References:In-Reply-To:From:Date:To:Subject; bh=2Uok5vmWvC65lF3ggGYPxIbauQ20hMZO7jsEPid4YBM=; b=IXGRXSKJAUi8/Y0p+QJ5rGrfpMc3bWM/NwQcuD2h2FiIPFnQRWkEVoW7zqcywUyNJ945r4TssJuajgSCVMZ6aO7lAU1cijNa0y6fbRscrsaF/GvccN2Yeip01gkUi9aUF1nd85mRNcbepO5WCn289slxTOGYPZamPoCk+e0EGOd0o+LBlngXxbCCdUg7le2xQBh6lhj0BQ+oI4yfCF+H0idORLcB/jX3yyQifqLK5s4i6okMVzSLQsqW0zoqJN3vdd+bnPZLcQvKTmblq2Gfpk4I56J/6pV7jZ95gb9SjQMFhSVFT02HavS5k+b6fjMcKZZDvl8OaDvEknEl5WddWQ==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sxKJG-0001qL-5z for bug-gnu-emacs@gnu.org; Sun, 06 Oct 2024 02:00:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 06 Oct 2024 06:00:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 71909 X-GNU-PR-Package: emacs Original-Received: via spool by 71909-submit@debbugs.gnu.org id=B71909.17281943977046 (code B ref 71909); Sun, 06 Oct 2024 06:00:02 +0000 Original-Received: (at 71909) by debbugs.gnu.org; 6 Oct 2024 05:59:57 +0000 Original-Received: from localhost ([127.0.0.1]:39959 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sxKJB-0001pZ-0Z for submit@debbugs.gnu.org; Sun, 06 Oct 2024 01:59:57 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:43256) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sxKJ8-0001pI-Js for 71909@debbugs.gnu.org; Sun, 06 Oct 2024 01:59:55 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sxKIw-0008SY-So; Sun, 06 Oct 2024 01:59:43 -0400 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=2Uok5vmWvC65lF3ggGYPxIbauQ20hMZO7jsEPid4YBM=; b=EOoZ2NiTSQGB JIcIai+eSgoHHuCOOtD3pkcALm/MCIaD74Rmtm25c1XUSFh6OTncDFYR/Q6SWbDB6NeH0yoMSR0/B DpI/k1xuXA/aZWAE1x9YoBJNb4EOY+fJzHaNpXoZmu6TSQJAy1/9ahG4c7jXBPbDwYvVZCGj5g4V1 mhbbMpekfQH1pu776Gm92QVwPCn868mSKUHO3JGxVHBL/geGkEmdTjVdUag1e19LoodVbqTHkDieQ MpolPYE+pdjKcZwrVh90Wv7Jb30D9dW4B8LYUcjAgO9KdkKI0ZBxwSEi/v3asZhsVk1uhl1tfeDhl 22Ot+TFEHTUqRGBuf0C0ig==; In-Reply-To: <0056b65b-5cdc-4271-b717-0acc75661c17@imayhem.com> (message from Cecilio Pardo on Sat, 5 Oct 2024 23:24:09 +0200) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:293067 Archived-At: > Date: Sat, 5 Oct 2024 23:24:09 +0200 > From: Cecilio Pardo > Cc: 71909@debbugs.gnu.org > > On 05/10/2024 21:31, Eli Zaretskii wrote: > > > If you invoke "M-: (gui-get-selection 'CLIPBOARD 'TARGETS) RET" after > > copying something to the clipboard, you will see some very weird > > format names there. For the standard formats, we convert them to > > something similar to what X Window system produces (see > > w32-selection-targets), but the rest are returned as-is. For example, > > after copying an image from Firefox, I get this as the return value of > > the above evaluation: > > > > [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] > > > > There's no image/* here, only DIB and BITMAP (which correspond to > > CF_DIB and CF_BITMAP clipboard formats). There are also a lot of > > text/* formats, but they are all non-standard, except, perhaps, > > text/html. Do you have ideas how to select the proper format and how > > to yank the data? > > > What do the x/special-* formats correspond to on Windows? > > We would convert the BITMAP format to image/png But BITMAP is not PNG, AFAIU. Moreover, with some images, when I copy them in a Web browser, I see "PNG" in the targets vector reported by gui-get-selection. So I think we need to understand what exactly we get with each format before we decide on the mapping. As another data point. text/html seems to be Firefox-specific thing; the standard Windows name for this is "HTML Format" (with the embedded space). > and FILE_NAMES to > x-special/gnome-copied-files, to be compatible with what org-mode does > now. The offer to yank-media would then be text/html, image/png, and > x-special/gnome-copied-files, ignoring the rest of formats. I don't like the Gnome-specific name x-special/gnome-copied-files. I'd rather we produced a more generic name, and then ask the Org developers to add support for it. What about other kinds of media, like audio and video data? Is that supported, and if so, can we include that in some way?