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 10:39:13 +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> <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> 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="30774"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla Thunderbird To: 71909@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Oct 24 10:40:07 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 1t3tO2-0007s5-Ei for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 24 Oct 2024 10:40:06 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1t3tNk-0007sJ-MV; Thu, 24 Oct 2024 04:39:49 -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 1t3tNW-0007rv-Cf for bug-gnu-emacs@gnu.org; Thu, 24 Oct 2024 04:39:34 -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 1t3tNW-0001pE-3P for bug-gnu-emacs@gnu.org; Thu, 24 Oct 2024 04:39:34 -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=87aWRAI4RkRIRQxk4xeXSkcsz1+rjbCDMxY8em8ui3U=; b=mQURlFVxJqvxnpwaFJXI9F7UiD5sC+l9cMh7qyLAwavM8e6yApa4K3QYQ6Yl5gdASQOQhqQqwI2ghEvM226OkmHDiyx2wlrb5nhibSwl1B7AucxtDMbZvs9gNc7GVqcZaaoqIqYUGHDhDmqfYUiQv8Q6Ti1kdiHCqYb0vP3ryrx63h3xRSGvEqgCpxTMBnvuEflRTRS/ygU85nsgK440ifxDMAwMFN61qOIBZinRJDAeM8vRLaCP2qL7t7FuBwGYC+Hep8hSMpR8BKPbgzpqDzZOnom29VVJZarhMaAVyauqvy2zDaTnDXLkQ4an/9wurcks9CS48btG9JMnbqRRpA==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1t3tNy-0006lr-An for bug-gnu-emacs@gnu.org; Thu, 24 Oct 2024 04:40: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: Thu, 24 Oct 2024 08:40:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 71909 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.172975919626004 (code B ref -1); Thu, 24 Oct 2024 08:40:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 24 Oct 2024 08:39:56 +0000 Original-Received: from localhost ([127.0.0.1]:33574 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1t3tNs-0006lK-59 for submit@debbugs.gnu.org; Thu, 24 Oct 2024 04:39:56 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:56154) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1t3tNp-0006lB-TI for submit@debbugs.gnu.org; Thu, 24 Oct 2024 04:39:55 -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 1t3tNL-0007rW-6X for bug-gnu-emacs@gnu.org; Thu, 24 Oct 2024 04:39:23 -0400 Original-Received: from mail.imayhem.com ([82.223.54.191] helo=zealous-pike.82-223-54-191.plesk.page) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1t3tNI-0001nA-Kn for bug-gnu-emacs@gnu.org; Thu, 24 Oct 2024 04:39:22 -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 89A3780185 for ; Thu, 24 Oct 2024 08:39:15 +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: <8634kmdl5b.fsf@gnu.org> Received-SPF: pass client-ip=82.223.54.191; envelope-from=cpardo@imayhem.com; helo=zealous-pike.82-223-54-191.plesk.page X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_VALIDITY_CERTIFIED_BLOCKED=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action 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:294173 Archived-At: 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. 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. >> - 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. > > Will we support yanking from a spreadsheet? If so, with what format? Yes, LibreOffice offers them as RTF, with a table. Also in HTML. I'm hoping to convert RTF tables to org-mode tables. > 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?