From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Robert Pluim Newsgroups: gmane.emacs.devel Subject: Re: yank-media: allow users to limit image types that can be inserted Date: Tue, 24 Sep 2024 10:38:46 +0200 Message-ID: <87tte5e99l.fsf@gmail.com> 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> <86bk0efdeh.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="38241"; mail-complaints-to="usenet@ciao.gmane.io" Cc: visuweshm@gmail.com, pinmacs@cas.cat, emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue Sep 24 10:39:38 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 1st158-0009hm-5S for ged-emacs-devel@m.gmane-mx.org; Tue, 24 Sep 2024 10:39:38 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1st14Q-0005Zn-UY; Tue, 24 Sep 2024 04:38:55 -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 1st14P-0005ZO-0N for emacs-devel@gnu.org; Tue, 24 Sep 2024 04:38:53 -0400 Original-Received: from mail-wr1-x433.google.com ([2a00:1450:4864:20::433]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1st14N-0002k3-5b; Tue, 24 Sep 2024 04:38:52 -0400 Original-Received: by mail-wr1-x433.google.com with SMTP id ffacd0b85a97d-374c3400367so4643498f8f.2; Tue, 24 Sep 2024 01:38:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1727167128; x=1727771928; darn=gnu.org; h=mime-version:message-id:date:gmane-reply-to-list:references :in-reply-to:subject:cc:to:from:from:to:cc:subject:date:message-id :reply-to; bh=3TKXOWZldM2jObfTKK1QAYUMLfv+jfFJ4MrUA6cjYq0=; b=AMZ8WfNmBlnRMbOEHAFvqGfeMgN1t7I4Qpjvs5kRgOWB+fsvMOTGn+HfZC8bj7PNX6 6x1t2HmjHDbk7Cv7RRgKw04qIhrM8Ol83V+T6ZyHNcfdLYlK0/gnZfGVZYpQ9aXwsDgj jmbMmkq5OHZZeh8ZqONog0at3IfnTNBn5b6+UCAp3SB8WHvASSuIBgKj96fZCLC/8YiT Wawyn4maUatZLJMvnYjaj14psMWKH3tkN4sRup02cfWOKKH+L9zfQAqhTsxwZIZIWbXX Uuhk/31GYzazMQP2DVMREOprC56T3S3pJb6hwuSYFGcJNIZNlgbvAtkrE3y1HhU5p942 Dj9g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1727167128; x=1727771928; h=mime-version:message-id:date:gmane-reply-to-list:references :in-reply-to:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=3TKXOWZldM2jObfTKK1QAYUMLfv+jfFJ4MrUA6cjYq0=; b=JYkGKAhXdA8JglrvNQE1fdajc/x+do+HFR/dw/HEB3gXo64dKnF7FTvBBpi8UDX4IW NCsjLRTgUET4yJpezVmmX9acyg0LQdj9OAeEV5tRJwpwoUM9aJMJrouV0e0VFF0b5fcI D4UubuDJI1Y29O671A8aOhEX1MsXj9pk5z8ujvY/YZxBV2EE3aunO8St4bt60lrDRU9B 1KpjhTOeoOPx3pB6gm5/dqPrWvm01bDWfa0Vdf3vQKt39NWMmrzjE92QsnXHB1SUdvTB s5uIriLuEfOXiijGf8Dn32s9xtiddyAVjBBH8g3ANDnj/cyJv5CR97kPyi9ufM6Hen46 28+Q== X-Forwarded-Encrypted: i=1; AJvYcCXSq6RK5kcPAO3pNMneXDfX/RZ318qMyi32Zt+PgoxUuUCBxRTeFezvFutKZIF2QjAADAVy3hua8pCzNg==@gnu.org X-Gm-Message-State: AOJu0Yy9dq/O/foK+7vXuJFFFXCpYYp+ypMiixfU7mvOv4rlgDUqcHTY 3pAtnRivpYkpsYqFzo5TjaoA5VOjapG1/2x97Km/iNjn1njn7uKP2BrBnQ== X-Google-Smtp-Source: AGHT+IFARTTqfCyJxve8zn/qn1TaRHlmAP6mYUKl4nvUThA+ncDUSBw7LQGXAzD3GlgCd1T8tNpudA== X-Received: by 2002:a05:6000:b87:b0:374:c1c5:43ca with SMTP id ffacd0b85a97d-37a422cde5cmr11223621f8f.32.1727167127704; Tue, 24 Sep 2024 01:38:47 -0700 (PDT) Original-Received: from rltb ([2a01:e0a:3f3:fb51:4318:aaaa:4cce:d340]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-37cbc2c1ef1sm960469f8f.35.2024.09.24.01.38.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 24 Sep 2024 01:38:47 -0700 (PDT) In-Reply-To: <86bk0efdeh.fsf@gnu.org> (Eli Zaretskii's message of "Mon, 23 Sep 2024 21:11:50 +0300") Gmane-Reply-To-List: yes Received-SPF: pass client-ip=2a00:1450:4864:20::433; envelope-from=rpluim@gmail.com; helo=mail-wr1-x433.google.com X-Spam_score_int: -10 X-Spam_score: -1.1 X-Spam_bar: - X-Spam_report: (-1.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, FREEMAIL_REPLY=1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action 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:324012 Archived-At: >>>>> On Mon, 23 Sep 2024 21:11:50 +0300, Eli Zaretskii said: >> 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: Eli> Sorry, I somehow managed to delete this part. Here's what I intended Eli> to say: Eli> And anyway, this is not what the OP said. Let's get back to what he Eli> said: Eli> 1. In case I want to be fast, I would like to skip that dialog entirely Eli> and just use the image/png variant. Eli> 2. In another perspective, I would consider that the relevant decision Eli> for a screenshot would be between two of them: image/png and image/jpeg Eli> 3. Another user could argue why the other 5 types are interesting in Eli> general or for their particular use case... Eli> ... but let's stop that discussion here. Looks like filtering image Eli> types would be a useful customization for the users. If done as a Eli> variable, in certain cases, that could be local binded and specific to Eli> some fast function that immediately inserts an image, and in another Eli> case, the global var would select only those image types relevant for Eli> that particular user. Eli> You pay attention only to the first part, with its 3 cases, but I Eli> think that the main part is the second paragraph, which seems to ask Eli> for a much more wide feature, and doesn't explain its motivation or Eli> context. I took the second part as 'if we had such a variable, users could let-bind it around yank-media to get "insert now" behaviour, and have a global value that trims the available list'. Robert --