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; yank-media on MS-Windows Date: Thu, 24 Oct 2024 01:13:49 +0200 Message-ID: <51b40c99-1104-4fbd-bf58-dde7d4c0791a@imayhem.com> 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> <86o73wt997.fsf@gnu.org> <1b239275-068f-40b4-814e-dbaf9229e99f@imayhem.com> <8634l54cp4.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="7578"; 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 Thu Oct 24 01:14:54 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 1t3kZ4-0001o9-8g for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 24 Oct 2024 01:14:54 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1t3kYl-0004xd-Uu; Wed, 23 Oct 2024 19:14:36 -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 1t3kYj-0004xS-Im for bug-gnu-emacs@gnu.org; Wed, 23 Oct 2024 19:14:33 -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 1t3kYj-0003fr-AI for bug-gnu-emacs@gnu.org; Wed, 23 Oct 2024 19:14:33 -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=Mt6gstGhSALhCUAdiHqIupKsd0dVaGsNbiGsOECqsYE=; b=dYM8vFDoJZmGnOrohKTnqnl+65lQAEEK+eV9LVDnM89KQES8rumu3EeCTofw5vEm5+EPiHGYqA+iU7ZIzuP+rA8gW9fUgt7/BCpLCVAucO0gRmYUwMSPdK3o4LZ0hXCDBE6QaM2LnbNuJlMlYKhuZVMsW/FwlXfCG1IAdO8rGbGjOxoPpQZvPNkbm1j4//c9nSFXdON/W0RloMi7iEul+p05ldDzo2rAn7XHAlXyRjrAm8Y9FfMZ/Q4EpDMSMYGrAHI8hRVlhPPmV+Y47hKP08grQ7XQ/4zMkUGPeiGywQ5mbqQ7UHTULRrxCg8K0ju8r5lQ1CStm2k71Orr5fDTlw==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1t3kZB-0005tP-Qh for bug-gnu-emacs@gnu.org; Wed, 23 Oct 2024 19:15:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Cecilio Pardo Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 23 Oct 2024 23:15:01 +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.172972527222593 (code B ref 71909); Wed, 23 Oct 2024 23:15:01 +0000 Original-Received: (at 71909) by debbugs.gnu.org; 23 Oct 2024 23:14:32 +0000 Original-Received: from localhost ([127.0.0.1]:32875 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1t3kYi-0005sK-0s for submit@debbugs.gnu.org; Wed, 23 Oct 2024 19:14:32 -0400 Original-Received: from mail.imayhem.com ([82.223.54.191]:59067 helo=zealous-pike.82-223-54-191.plesk.page) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1t3kYe-0005s1-Qg for 71909@debbugs.gnu.org; Wed, 23 Oct 2024 19:14:30 -0400 Original-Received: from [192.168.68.104] (111.red-88-21-7.staticip.rima-tde.net [88.21.7.111]) by zealous-pike.82-223-54-191.plesk.page (Postfix) with ESMTPSA id BC8C28016C; Wed, 23 Oct 2024 23:13:50 +0000 (UTC) Authentication-Results: zealous-pike.82-223-54-191.plesk.page; spf=pass (sender IP is 88.21.7.111) smtp.mailfrom=cpardo@imayhem.com smtp.helo=[192.168.68.104] Received-SPF: pass (zealous-pike.82-223-54-191.plesk.page: connection is authenticated) Content-Language: es-ES In-Reply-To: <8634l54cp4.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:294160 Archived-At: Getting back to this, I have been checking what some programs (a couple of nonfree ones) provide on the clipboard for different media types. GIMP | Copy pixels | PNG LibreOffice | Copy vectorial object | PNG, GDIMetafile LibreOffice | Copy embedded image | PNG LibreOffice | Copy text | RTF, HTML, ODT LibreOffice | Copy equation | RTF LibreOffice | Copy Calc cells | PNG, RTF, HTML, GDIMetafile Firefox | Copy Image | DIBV5 Firefox | Copy Text | HTML, RTF Krita | Copy pixels | PNG Inkscape | Copy vector | SVG, PNG, PDF, Postscript Windows Paint | Copy pixels | PNG Acrobat Reader | Copy text | RTF They offer more formats, but in many cases they are not really there (the yank-media code knows about this, and in fact checks every type to purge the empty ones from list), or are propietary. So I think we should stick to these: - Rename PNG to image/png, so the emacs programs find it. If there are other image formats with mime spec, yank-media will let the user choose. For example, krita offers a huge amount of formats, as mime. - If no PNG is offered, but DIBV5 is, like Firefox, convert the pixel data to a PNG file, and offer it as image/png. We don't loose anything converting the BMP to PNG, and the programs that use yank-media for images (message-mode, org-mode) need a file, not an in-memory image object. And PNG is a much better format. - GDIMetafile would be ideally converted to SVG. Offering the metafile as it is makes little sense in my opinion. It is not a very used format. - Text as HTML should be offered as text/html, for the use of html editing modes. - Rtf text should be offered also to org-mode, adding a new yank handler to convert rtf format to org format. I am working on that. We could also provide it to enriched-mode, but it could use very few properties of the text. Anyway, this is not a Windows issue, and it still a little far away.