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 19:34:48 +0300 Message-ID: <86cykufhw7.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> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="19675"; mail-complaints-to="usenet@ciao.gmane.io" Cc: visuweshm@gmail.com, pinmacs@cas.cat, emacs-devel@gnu.org To: Robert Pluim Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Mon Sep 23 18:35:44 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 1ssm2K-0004v1-9s for ged-emacs-devel@m.gmane-mx.org; Mon, 23 Sep 2024 18:35:44 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ssm1e-0007LM-Nk; Mon, 23 Sep 2024 12:35: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 1ssm1W-0006s7-MG for emacs-devel@gnu.org; Mon, 23 Sep 2024 12:34:59 -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 1ssm1U-0001ym-6f; Mon, 23 Sep 2024 12:34:52 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=wSTDKIENbuTGAAAdrzNcgIVcPpMN/1BsPukiQSNvYE4=; b=BodDEdmlMUyXkhjtf3s0 EjQpR/1m0pgXTEj2Yv1w+5h/7Y7PYoCnnkJn03lU7J0vfSXlEemHDDrLZeb1MkAGEP3L+d/oIhz2V ShlLaJxq3VV0rWIeH80AymxYlW+oT/e3eU74XknVgkiQrN+yuSSIc6/VntjdZthdY9qHQsgdLSJhD feyGPIcqyDzq5nBfSyb1Nq+5SkLfamNMgKgqgAH9uNNbA/etNAjejAPtzzDYgw/Iqy6yuJhJx6BnB 75WCD/zkRjiDSZFzuYAez2Ft/GcbyHyBGSNchUsO25ysVz6lwDzpHNSqsu7EAm+abx9lcdP99Fgnz 3knpvAuPRCLiLw==; In-Reply-To: <877cb2fj0c.fsf@gmail.com> (message from Robert Pluim on Mon, 23 Sep 2024 18:10:43 +0200) 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:323977 Archived-At: > From: Robert Pluim > Cc: visuweshm@gmail.com, pinmacs@cas.cat, emacs-devel@gnu.org > Date: Mon, 23 Sep 2024 18:10:43 +0200 > > >>>>> On Mon, 23 Sep 2024 18:54:25 +0300, Eli Zaretskii said: > > >> From: Robert Pluim > >> Cc: Visuwesh , pinmacs@cas.cat, emacs-devel@gnu.org > >> Date: Mon, 23 Sep 2024 17:09:03 +0200 > >> > Eli> IMO, for users we already have what is needed: when we detect several > Eli> formats, we show them to the user and ask him/her to tell us which > Eli> format he/she wants to use. > >> > >> But that requires user interaction. I think the original request could > >> be summed up as "if the list contains image/png, donʼt ask me, just > >> insert the image". > > Eli> That's not how I understand the request. It was not always PNG, it > Eli> was "sometimes PNG, but if so-and-so-happens, the JPEG" etc. > > Yes, but the "so-and-so" is determined by a user option. So > > 1. Always prefer "png" -> user option == "png" > 2. Want to choose between "png" and "jpeg" -> user option == ("png" > "jpeg") > 3. All of the formats -> user option == nil That makes little sense to me: how can the user decide in advance to use only PNG? by what logic? And anyway, this is not what the OP said. Let's get back to what he said: > Eli> And no one has explained yet why I would prefer PNG to JPEG or vice > Eli> versa, btw. The usual choices I'm familiar with is whether or not to > Eli> preserve typefaces, colors, and other fancy attributes; regarding > Eli> images, there's just a decision whether you want to paste the material > Eli> as a picture or as some kind of text, whether rich or not. So the > Eli> background and the context for this request is still not clear to me. > > I can definitely see a use for case 1 above: "donʼt bother asking me, > if png is available just use that". I don't understand why would someone define their preference in the terms of image format. It makes no sense.