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#74044: 31.0.50; yank-media filters out svg files Date: Thu, 31 Oct 2024 12:37:51 +0200 Message-ID: <86ldy436dc.fsf@gnu.org> References: <96eb0190-797f-4749-9575-ec145f8b06bb@imayhem.com> <86sesh92gh.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="38546"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 74044-done@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 31 11:38:37 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 1t6SZZ-0009ru-CA for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 31 Oct 2024 11:38:37 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1t6SZ4-0004FR-Av; Thu, 31 Oct 2024 06:38:06 -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 1t6SZ1-0004EV-Kh for bug-gnu-emacs@gnu.org; Thu, 31 Oct 2024 06:38:04 -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 1t6SZ1-0007UF-CN for bug-gnu-emacs@gnu.org; Thu, 31 Oct 2024 06:38:03 -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=modfFVQtBkCi0jwT8p3VxOxZ6qlDcMcxnzlnPmKAlUA=; b=nOdX/W102kQ9mJy3t/lyvxj0byCB22gSxqcpSjIZuWgGr0aaBbn3pHvs4ZobbkobfdhApcFTQhAYRUZOfAJGYjIqxs8vdwHJ9fisQkKk2dvTa9D91fTOnMs2SCuAJR5Xr3ziiRXnr5aXRu4othm0ozdmC4cAlB2j6qQ68QMJ6QDVi7cWyLrPchrDZ72JtJRWvCM2G0I9znykRrJoajzLx7HZrFCO4Oh046SEUx/vT0hsQzKW83vjlC1sBfG7Hd0Rsv3Un1guF4k25usmxNC6b2KrT6jip7YT9C+Oh3RjqaJvAot7vMyXOc7DZSIzWsFOD7XPrjMOP2nNVM5PVxZPZw==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1t6SZ1-00037s-6W for bug-gnu-emacs@gnu.org; Thu, 31 Oct 2024 06:38:03 -0400 Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-To: bug-gnu-emacs@gnu.org Resent-Date: Thu, 31 Oct 2024 10:38:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 74044 X-GNU-PR-Package: emacs Mail-Followup-To: 74044@debbugs.gnu.org, eliz@gnu.org, cpardo@imayhem.com Original-Received: via spool by 74044-done@debbugs.gnu.org id=D74044.173037108111991 (code D ref 74044); Thu, 31 Oct 2024 10:38:02 +0000 Original-Received: (at 74044-done) by debbugs.gnu.org; 31 Oct 2024 10:38:01 +0000 Original-Received: from localhost ([127.0.0.1]:41578 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1t6SYy-00037L-O2 for submit@debbugs.gnu.org; Thu, 31 Oct 2024 06:38:01 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:45218) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1t6SYx-00037E-45 for 74044-done@debbugs.gnu.org; Thu, 31 Oct 2024 06:37:59 -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 1t6SYr-0007TD-BJ; Thu, 31 Oct 2024 06:37: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=modfFVQtBkCi0jwT8p3VxOxZ6qlDcMcxnzlnPmKAlUA=; b=TSywnzBHheb4 WMw95vtu/MN9VTfkev4I/VF1bLIk9qebUm9gpD2q3ShVg5cJybIl+T1GFVHQ3668Z5EPyMGc/3z2u C/9udMGixYmPPNL1zCuB5cB8gQ9MVKMhf9eR9qTJ33DJ7uTBM6DS0+tLPcZehgN8gwmTP0xgHxAxm kZJFcv7P+48BzcuRyeyQInQdSu8pcTfAb59tge7qzgxdEtgIdYYnavGCgkNCIcroe94Tprig94r+h 0PZdkCt+Hvuc6SNcmpPiT87ij/Pk/5q/OdUxv/KfkDOyyO+Ov7iegw37oNrwBDC2hEkG1t3Hijmup lRhmFCmSFJtk73om7s+7qg==; In-Reply-To: (message from Cecilio Pardo on Sun, 27 Oct 2024 14:45:45 +0100) 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:294611 Archived-At: > Date: Sun, 27 Oct 2024 14:45:45 +0100 > Cc: 74044@debbugs.gnu.org > From: Cecilio Pardo > > On 27/10/2024 13:04, Eli Zaretskii wrote: > >> yank-media filters out image formats that are not supported by emacs. > >> > >> To do that is passes the second part of the mime type (png, jpeg, etc.) > >> to (image-type-available-p). This is ok for other image types, but not > >> for SVG, because its mime type is image/svg+xml. For example, InkScape > >> (a free vector drawing program) uses image/svg+xml to copy vector data > >> into the clipbard. > >> > >> This patch fixes that filtering. Also changes the function > >> mailcap-mime-type-to-extension, used by org-mode to choose an extension > >> for the file it saves. It nees to be svg, not svg+xml. > > > > Please add comments that explain why we treat svg+xml spercially. > > Patch attached. Thanks, installed on master, and closing the bug.