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; yank-media on MS-Windows Date: Thu, 24 Oct 2024 12:38:49 +0300 Message-ID: <86wmhxdemu.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> <86o73xvkj8.fsf@gnu.org> <86o73wt997.fsf@gnu.org> <1b239275-068f-40b4-814e-dbaf9229e99f@imayhem.com> <8634l54cp4.fsf@gnu.org> <51b40c99-1104-4fbd-bf58-dde7d4c0791a@imayhem.com> <8634kmdl5b.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="40508"; 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 Thu Oct 24 11:40:11 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 1t3uKA-000ANA-M6 for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 24 Oct 2024 11:40:10 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1t3uJZ-0003Ge-Rw; Thu, 24 Oct 2024 05:39:34 -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 1t3uJY-0003GO-2Q for bug-gnu-emacs@gnu.org; Thu, 24 Oct 2024 05:39:32 -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 1t3uJX-0001j6-QL for bug-gnu-emacs@gnu.org; Thu, 24 Oct 2024 05:39:31 -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=Q5GA7NI8JeUMASFkzKCPZ9nGnoAERsK9m/z8sgb0wUY=; b=SjPQPgJXxW1Srlof6dV9cxTuXFyfbcAge6d2eOySYRX/o3keS4RoEb1Cfip1fNTARexVfbMo9SdC20qmcPBwK6XjnHhMBGWXSnLHNy1AVQPdu8obSg26EnINm3su+TxZKlxVPrr7DQnaDI/D/FH1VvWDnMaDge3WuHwxRzPFyj5qJ3nfm+Wcthv/xb0xi0USRq2kjGLmMd1OfjEd44Z+4G0OowAUTmluNdxN0N8RnadVx9On86+s+EqOhdjapFK2d16Bap1Qm6Zp+2YSsgPnbjJUd9Ya3LuqgmnzOWqDdEGK7PmmBvPIyvaKf4lrAr3YtG9SiRt36QZ8QCWASuFicw==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1t3uK1-00016a-QL for bug-gnu-emacs@gnu.org; Thu, 24 Oct 2024 05:40:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 24 Oct 2024 09:40: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.17297627724198 (code B ref 71909); Thu, 24 Oct 2024 09:40:01 +0000 Original-Received: (at 71909) by debbugs.gnu.org; 24 Oct 2024 09:39:32 +0000 Original-Received: from localhost ([127.0.0.1]:33667 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1t3uJY-00015e-2j for submit@debbugs.gnu.org; Thu, 24 Oct 2024 05:39:32 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:42428) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1t3uJV-00015P-7K for 71909@debbugs.gnu.org; Thu, 24 Oct 2024 05:39:30 -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 1t3uIv-0001eB-0K; Thu, 24 Oct 2024 05:38:53 -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=Q5GA7NI8JeUMASFkzKCPZ9nGnoAERsK9m/z8sgb0wUY=; b=JiswOsOW4BvE nUNOkgy0kulixjpUpohEveKdc/lgTBTQggd7IuWYPVT3xUYzlcC9NM7qfnhTq86thlTOosHvot1cl tC72iaVdBiDL6gvmd+fh7u3WEM5J6Ptp3kdr98X6TY1tJf4Ob232S0KP5LhWVplSLHpEALCwLW6Tn qUdnbNEjbDezL0bvr22VZS93LT9CmWFPrBOyNFoWQhxyj5uT/CGqoU3ZmqX15rZppu2mcuDKoByxV 1/zsgboNiZHqwYJttjnyDOYf+ThGESLF0Y1m9EVBYSwO8qwOQbvda8gdigtd9LxEbHCtiGRbA6l40 ufcanHkAkG05zVOwy7N9Ow==; In-Reply-To: (message from Cecilio Pardo on Thu, 24 Oct 2024 10:39:13 +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:294178 Archived-At: > Date: Thu, 24 Oct 2024 10:39:13 +0200 > From: Cecilio Pardo > > On 24/10/2024 9:18, Eli Zaretskii wrote: > > >> - 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. > > > > I'm not sure I follow: isn't yank-media about yanking the image into > > the current buffer? If so, why is having a file important, let alone > > necessary? > > I mean they need data in the format that would go into a file, PNG, BMP, > etc. Not the kind of data that is a DIB. We could easily convert in to a > BMP file, but, once we need to manipulate it, better to give a PNG. Maybe we need an image-save-as function, to save an image's data to a file, then? What you describe sounds like a separate requirement. > org-mode stores the yanked images as attachments, saving files. > message-mode stores the images in the message like this: > > <#part type="image/png" disposition=inline data-encoding=base64 raw=t> > iVBORw0KGgoAA... > > That is, not a file in disk, but the data that would go into a PNG file. If a file is needed, writing the image data to a file will solve it (and is a useful feature to have, regardless). Does yank-media produce image files on GNU/Linux, when it yanks images? > > Where we have both RTF and HTML, should we perhaps use HTML and pass > > it through shr, to produce text with faces, rather than raw HTML? > > Once RTF handler exists, we could use that instead, but having it > > rendered via HTML might be a useful option anyway. > > What mode could benefit from yanking propertized test? Any descendant of Text mode can use propertized text. It doesn't _have_ to be so, but it's possible, and I think we should offer that if we can.