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: Sun, 27 Oct 2024 14:04:30 +0200 Message-ID: <86sesh92gh.fsf@gnu.org> References: <96eb0190-797f-4749-9575-ec145f8b06bb@imayhem.com> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="25860"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 74044@debbugs.gnu.org To: Cecilio Pardo Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Oct 27 13:07: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 1t523V-0006ci-2x for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 27 Oct 2024 13:07:37 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1t523P-000589-4s; Sun, 27 Oct 2024 08:07:31 -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 1t523L-00057y-RB for bug-gnu-emacs@gnu.org; Sun, 27 Oct 2024 08:07:29 -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 1t523L-0007jO-Ih for bug-gnu-emacs@gnu.org; Sun, 27 Oct 2024 08:07:27 -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=go4KZKK2pdmd4iPFusKTmbcb/RMftGeBP340GDHgf/I=; b=qJO4pVaWRp9WJWeeGNa2iQ8QpqfreJncGrDBWfUVgF+KuNjQiB/w0oo60iZSez7CARguTbkZrDeKa93eyD4a4XOt8cWqaKYzbaldvv8YAtJgdXfX9evZEA3RuknKd08X5bZYz5Ysv6mc+p8QnlQQWniPT/bhitTp3X/4PMowoO+lbjQm0BRFym1DjELk9b9p/O1GAbkl3vus34KWD8O3SBTZEArDLJQyoJC4sGTh+usUeOu2/HGDS7K1A1eTdJJXSKFM5Kg98KZdUDZPn8KM9dDvdHax05hK9iSS2mexYUdyQcin+LPwoFnP2yNBSOa0/lyEfBOhmiXAZOpC5uDp1A==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1t523t-0002a3-Ng for bug-gnu-emacs@gnu.org; Sun, 27 Oct 2024 08:08: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: Sun, 27 Oct 2024 12:08:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 74044 X-GNU-PR-Package: emacs Original-Received: via spool by 74044-submit@debbugs.gnu.org id=B74044.17300308449856 (code B ref 74044); Sun, 27 Oct 2024 12:08:01 +0000 Original-Received: (at 74044) by debbugs.gnu.org; 27 Oct 2024 12:07:24 +0000 Original-Received: from localhost ([127.0.0.1]:44166 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1t523I-0002Yu-EZ for submit@debbugs.gnu.org; Sun, 27 Oct 2024 08:07:24 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:56516) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1t523G-0002Yc-W1 for 74044@debbugs.gnu.org; Sun, 27 Oct 2024 08:07:23 -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 1t520X-0007Jk-2s; Sun, 27 Oct 2024 08:04:33 -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=go4KZKK2pdmd4iPFusKTmbcb/RMftGeBP340GDHgf/I=; b=rOSd4ggbyeKQ r7PmS7jzpyDhG5s64gazzZZnSebee4NxnPUFo1yGtUMSXdPiknbEHIVRnBVWJ7U7bPRkWFmTMslcm 6YD9WURNzRLlRz4i6hdkYlyjZt7nWgAdKBr5qIPfEAwdjturmW2ZK6AWpVD1aKR8CasYs8QsknrWy 0EujNysYSUHVZw8x+nw0NJdL4Q7QdkBixOmkP3cKuq7KLU1e82FJt39cjK3lx0XQRxBf0sF57dmm5 HDRhsKESjTe/JvMcLXdTHlTPLBDd6FPr/2lpjtPw6PLICLCD4joulqhphU8rT1huapKfiSM7A9OLT YWChkFCjZLntYEw3C/bKQg==; In-Reply-To: <96eb0190-797f-4749-9575-ec145f8b06bb@imayhem.com> (message from Cecilio Pardo on Sun, 27 Oct 2024 11:38:14 +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:294350 Archived-At: > Date: Sun, 27 Oct 2024 11:38:14 +0100 > From: Cecilio Pardo > > 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. Thanks.