From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Cecilio Pardo Newsgroups: gmane.emacs.bugs Subject: bug#71909: 30.0.60; Date: Mon, 7 Oct 2024 12:24:01 +0200 Message-ID: References: <865xtnhyn6.fsf@foxmail.com> <868qv2wwyk.fsf@gnu.org> <865xq6wwkc.fsf@gnu.org> <86wmimuz18.fsf@gnu.org> <0056b65b-5cdc-4271-b717-0acc75661c17@imayhem.com> <86o73xvkj8.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="28328"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla Thunderbird Cc: 71909@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Oct 07 12:25:25 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 1sxkvc-0007FR-Nc for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 07 Oct 2024 12:25:24 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sxkvD-0000NY-Bb; Mon, 07 Oct 2024 06:24:59 -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 1sxkvA-0000N2-6c for bug-gnu-emacs@gnu.org; Mon, 07 Oct 2024 06:24:56 -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 1sxkv9-000175-Uy for bug-gnu-emacs@gnu.org; Mon, 07 Oct 2024 06:24:55 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=In-Reply-To:From:References:MIME-Version:Date:To:Subject; bh=1pLBK8zB4OLBh+DCFMomVy32JU8rG0i8CL4yJkDuCxQ=; b=ssB/Na2lOnqrk4VeKQC/IE7fT5+km6b7TRvR7S1RqGCur0ajzdsmTDtq6Kh62BWrvtYiudLfEHjg4M2mdfVUSjfkj5IJjDKfw32eFte/wKj6JuiszEx4RoGzoFFLmcCx+plQN/wJjAZxjOI1c2gTIBTOXwqPyc/anc34Whpr9eLP/pNJ6KkJs4+KhH2ZOdQetT/vuWHMs/8k+ESHwwMT/tG9urMCwxUbXQQ+50Oie/MRRbR+VdXcSPj5YgbOZH8K8pz+/66mcxCD9loLlxq0BuWVDnWtge/mPLFUmExUje5EpdntHlvtpY8c+rp/9cH7me8moWWsrf6ZRYUwaILMoQ==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sxkvG-0002jI-Mv for bug-gnu-emacs@gnu.org; Mon, 07 Oct 2024 06:25:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Cecilio Pardo Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 07 Oct 2024 10:25: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.172829665710423 (code B ref 71909); Mon, 07 Oct 2024 10:25:02 +0000 Original-Received: (at 71909) by debbugs.gnu.org; 7 Oct 2024 10:24:17 +0000 Original-Received: from localhost ([127.0.0.1]:44968 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sxkuW-0002i3-RF for submit@debbugs.gnu.org; Mon, 07 Oct 2024 06:24:17 -0400 Original-Received: from mail.imayhem.com ([82.223.54.191]:56603 helo=zealous-pike.82-223-54-191.plesk.page) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sxkuT-0002hm-OF for 71909@debbugs.gnu.org; Mon, 07 Oct 2024 06:24:14 -0400 Original-Received: from [10.0.12.77] (66.red-2-136-43.staticip.rima-tde.net [2.136.43.66]) by zealous-pike.82-223-54-191.plesk.page (Postfix) with ESMTPSA id CA31E80166; Mon, 7 Oct 2024 10:24:00 +0000 (UTC) Authentication-Results: zealous-pike.82-223-54-191.plesk.page; spf=pass (sender IP is 2.136.43.66) smtp.mailfrom=cpardo@imayhem.com smtp.helo=[10.0.12.77] Received-SPF: pass (zealous-pike.82-223-54-191.plesk.page: connection is authenticated) Content-Language: es-ES In-Reply-To: <86o73xvkj8.fsf@gnu.org> 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:293109 Archived-At: On 06/10/2024 7:59, Eli Zaretskii wrote: > 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. The standard bitmap formats for the clipboard (CF_BITMAP, CF_DIB, CF_DIBV5) are image data specific to windows, not an image format for saving to file. We need to convert it to an image format, with a mime/type. PNG or any other, even multiple ones. GIMP on ubuntu for example does this when you copy a section of image: [TIMESTAMP TARGETS MULTIPLE SAVE_TARGETS image/png image/bmp image/x-bmp image/x-MS-bmp image/x-icon image/x-ico image/x-win-bitmap image/vnd.microsoft.icon ...] On windows it does this: [PNG DIB BITMAP DIBV5] And the Paint program that comes with Windows 11: [DataObject Embed\ Source Native OwnerLink Object\ Descriptor METAFILE DIB PNG image/png Ole\ Private\ Data ENHMETAFILE BITMAP ...] I didn't expect the PNG, image/png formats. I suppose they are the same image as the DIB/BITMAP. It seems programs are already doing the conversion. I don't know the details yet, I'm on it. So at least for images it seems most times we will have a well-known format. If not (BITMAP,DIV), then we can do the PNG conversion. > 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). It may be interesting to handle some of this specific formats, from Firefox, or OpenOffice as discussed on another thread. We will have to detect them somehow and decide what to do for each case. > 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. Of course. > What about other kinds of media, like audio and video data? Is that > supported, and if so, can we include that in some way? In standard formats there is CF_RIFF and CF_WAVE. Also programas may insert a file format (as they do with PNGS), but I haven't found any example yet. In any case, we can do the same as with images.