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.devel Subject: Re: yank-media: allow users to limit image types that can be inserted Date: Thu, 31 Oct 2024 16:20:57 +0200 Message-ID: <86cyjg2w1i.fsf@gnu.org> References: <79fc91f3-c2c3-44db-9817-595808917f26@cas.cat> <86ed5ahb08.fsf@gnu.org> <87zfnywki8.fsf@gmail.com> <86setqfnmq.fsf@gnu.org> <87frpqflv4.fsf@gmail.com> <86ikumfjri.fsf@gnu.org> <877cb2fj0c.fsf@gmail.com> <86cykufhw7.fsf@gnu.org> <3a015d0f-549a-401f-be1c-651c9dbd5d9a@cas.cat> <8634lqfcaf.fsf@gnu.org> <87ikulwsd6.fsf@gmail.com> <86o74ddzxp.fsf@gnu.org> <87msiqvkph.fsf@localhost> <86ed42bs03.fsf@gnu.org> <874j4yot7x.fsf@localhost> <861q01c3h9.fsf@gnu.org> <87wmht3n17.fsf@gmail.com> <86v7xdamck.fsf@gnu.org> <87sesh37ya.fsf@gmail.com> <86iktd8o9h.fsf@gnu.org> <87iktb171d.fsf@gmail.com> <830de500-7c21-4dad-8290-9ab0f210af97@cas.cat> <86y1243cbx.fsf@gnu.org> <358410b5-29c3-4c75-a63c-68edd123fad8@cas.cat> <86froc34kz.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="23594"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: Cecilio Pardo Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Thu Oct 31 15:22:14 2024 Return-path: Envelope-to: ged-emacs-devel@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 1t6W3x-0005vq-Tx for ged-emacs-devel@m.gmane-mx.org; Thu, 31 Oct 2024 15:22:14 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1t6W32-0004yC-8N; Thu, 31 Oct 2024 10:21:16 -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 1t6W2v-0004xz-V5 for emacs-devel@gnu.org; Thu, 31 Oct 2024 10:21:10 -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 1t6W2v-0004J2-5X; Thu, 31 Oct 2024 10:21:09 -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=t/OaADx0LouLfYzZ6ovvss+6p7StxMVJ8q2Y3MjElK8=; b=llctgMLnYB6e xq4F4MqIT3TXfoHeHZTnK+lCes6eofHfeoI8dQB38OFK7iZRvK66oC+URr9QizmJv2mvbl3Q1ceuH Wkpifz3vWBv6uU0Bv5gVbNfYiWewSDackrIbDVAKlhX+VOQbJooEFeVrDX7jnhy9EZONKhSo4alSi dJ+f44cWuKovVb0rPMFlHAue1f9wwVUH5LiXa80amBRGRlq+xvUps3338Yt60dgAamhiAXx00hJWR x1J64Fyj4zg7jwWj62/ThsaiUtMO7EN/c4Rf7Oem9dYIR8W2nps0gqrNl2xY0SLjdRSIQAVtaJ6CT BnYSvtb8D/YciXOZj3xLtA==; In-Reply-To: (message from Cecilio Pardo on Thu, 31 Oct 2024 12:20:27 +0100) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:324972 Archived-At: > Date: Thu, 31 Oct 2024 12:20:27 +0100 > From: Cecilio Pardo > > > > On 31/10/2024 12:16, Eli Zaretskii wrote: > >> Date: Thu, 31 Oct 2024 11:47:42 +0100 > >> From: pinmacs > >> > >> Maybe I am missing too but when you choose a format, you choose how you > >> store and retain that information. Depending on what you are going to do > >> with that images, you might be interested in different formats. > > > > That is inaccurate: the format in which the yanked data is store in > > Emacs does NOT depend on your selection. Your selection only > > determines how Emacs will fetch the data from the clipboard/selection, > > and therefore also how it will interpret that data for the purpose of > > inserting it into a buffer. > > Org-mode and html-mode save images to disk and link to them, at least > int the default configuration, in the format they receive them. Then that is the problem: the format in which the inline images are stored doesn't have to be the same format which is used to yank the image into the buffer.