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: Sun, 27 Oct 2024 11:14:10 +0200 Message-ID: <861q01c3h9.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> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="8590"; mail-complaints-to="usenet@ciao.gmane.io" Cc: visuweshm@gmail.com, pinmacs@cas.cat, rpluim@gmail.com, emacs-devel@gnu.org To: Ihor Radchenko Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sun Oct 27 10:15:11 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 1t4zMd-00023Y-4s for ged-emacs-devel@m.gmane-mx.org; Sun, 27 Oct 2024 10:15:11 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1t4zLn-0003qA-Hs; Sun, 27 Oct 2024 05:14:19 -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 1t4zLk-0003pu-Tf for emacs-devel@gnu.org; Sun, 27 Oct 2024 05:14:17 -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 1t4zLj-000406-Kc; Sun, 27 Oct 2024 05:14:15 -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=qun2Opkw1jw1DC5AQIOcCMGcZZhmU+5E/Mq53+VwXxI=; b=Ib3v1ygeO4/q UfzlQeM/vOFyD5uer0v3KpRPvzz9QUzPGl4bOebxYtVIRXzPhXfuDf1OB3B7gkgBEC3sl1yZHZ/qs yMlZzmBuOVM5+lVpBDIIV+zsd8vMGkkIkp+KTLLr/CjpGWXjTbu+XUha/Ucd50o7JBDEzFara04ar 1J6Zxe4exUdAuaQLTkPIkDIh66pIaIdTDWw6qpV0eMY+USrEfH2gcMvgc+K1g4iML/dFUDddT8RxU QPMOgwz3AKhAIJ0teZ4qQhHOpzZ/0784gUKKy6pP9O0QDt5pZ9AM8g23LAwD9IOuvHZ6UEVPMht0z bGVX8J0v0Tg3xGBphoyaOA==; In-Reply-To: <874j4yot7x.fsf@localhost> (message from Ihor Radchenko on Sun, 27 Oct 2024 08:17:22 +0000) 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:324878 Archived-At: > From: Ihor Radchenko > Cc: visuweshm@gmail.com, pinmacs@cas.cat, rpluim@gmail.com, emacs-devel@gnu.org > Date: Sun, 27 Oct 2024 08:17:22 +0000 > > Eli Zaretskii writes: > > 1. clipboard contains 2 MIME types: image/png, image/bmp > 2. clipboard contains 1 MIME type: image/png > 3. clipboard contains 1 MIME type: image/bmp > > We want to handle all three scenarios in the following way: > 1. Select image/png (prefer it over image/bmp) > 2. Select image/png > 3. Select image/bmp (there is no image/png that we would prefer otherwise) > > In all three cases, we do not want to prompt user about mimetype choice. > > How can we do it using the existing Elisp API? Examine the available TARGETS, then bind yank-media--registered-handlers to the appropriate value when invoking yank-media. > > [It's hard to pick up a discussion which stopped a month ago.] > > Aside: It is not the first time you mention this problem, and I am > wondering how can it be. The full discussion is recorded in the mailing > list archives and possibly available from your MUA from thread view (is > it not?). Try reading every message on this and every other Emacs-related mailing list (which is what I do), and you will realize that going back to archives and re-reading the discussions from the beginning is something I cannot afford. I must keep discussions in memory or have them in my short-term archive, right there in the INBOX, so I could consult the few previous messages immediately with minimal fuss. A month in the past is too far, old messages were purged and are no longer at my fingertips. Why did you need to wait so long before chiming in again? Such long breaks can never do any good, so I respectfully ask to avoid them.