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: Mon, 23 Sep 2024 21:11:50 +0300 Message-ID: <86bk0efdeh.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> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="7813"; mail-complaints-to="usenet@ciao.gmane.io" Cc: visuweshm@gmail.com, pinmacs@cas.cat, emacs-devel@gnu.org To: rpluim@gmail.com Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Mon Sep 23 20:12:53 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 1ssnYK-0001s1-R1 for ged-emacs-devel@m.gmane-mx.org; Mon, 23 Sep 2024 20:12:53 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ssnXW-0006hN-23; Mon, 23 Sep 2024 14:12:02 -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 1ssnXP-0006h4-Ls for emacs-devel@gnu.org; Mon, 23 Sep 2024 14:11:56 -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 1ssnXP-0003QQ-1r; Mon, 23 Sep 2024 14:11:55 -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=MUMMSg8038fnkD/DKNak3eUZD/iF59UP1bdDvImLAkg=; b=hLl9dsdL7RtA mFq/WKagguv6MgRSHxjURz46Uty+wzB+1vBUpmR/JCHLnExTqJQPu5UG6ggaRUy3hCdhBdfxfhV2G o2uyChycpteGO6kxBMSkzaYsEbwojHFLj989I+WGuDT6VM/qCXTWA384J/hmYMqnc7Le1PP/74Gqm 54vkUZA7kdoASvXjz7bIi8UyGzWytY62t39uFIHSjBKWEE+tCv0WdjsCAora+bqkhRbc2Ou1cGSor YZoMxj8rlgEcDZC8IkqlQH8mDYBgHpLU8iK1y4HJKRY/EL7RWLuCZolvIRRIaQPJCvZHCCxvXzLnl /ExYtjhH+7p+geaaeeJJig==; In-Reply-To: <86cykufhw7.fsf@gnu.org> (message from Eli Zaretskii on Mon, 23 Sep 2024 19:34:48 +0300) 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:323986 Archived-At: > Date: Mon, 23 Sep 2024 19:34:48 +0300 > From: Eli Zaretskii > Cc: visuweshm@gmail.com, pinmacs@cas.cat, emacs-devel@gnu.org > > And anyway, this is not what the OP said. Let's get back to what he > said: Sorry, I somehow managed to delete this part. Here's what I intended to say: And anyway, this is not what the OP said. Let's get back to what he said: 1. In case I want to be fast, I would like to skip that dialog entirely and just use the image/png variant. 2. In another perspective, I would consider that the relevant decision for a screenshot would be between two of them: image/png and image/jpeg 3. Another user could argue why the other 5 types are interesting in general or for their particular use case... ... but let's stop that discussion here. Looks like filtering image types would be a useful customization for the users. If done as a variable, in certain cases, that could be local binded and specific to some fast function that immediately inserts an image, and in another case, the global var would select only those image types relevant for that particular user. You pay attention only to the first part, with its 3 cases, but I think that the main part is the second paragraph, which seems to ask for a much more wide feature, and doesn't explain its motivation or context.