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 18:48:37 +0300 Message-ID: <86jzf2fk16.fsf@gnu.org> References: <79fc91f3-c2c3-44db-9817-595808917f26@cas.cat> <86ed5ahb08.fsf@gnu.org> <87zfnywki8.fsf@gmail.com> <86setqfnmq.fsf@gnu.org> <87v7ymwgsd.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="29729"; mail-complaints-to="usenet@ciao.gmane.io" Cc: pinmacs@cas.cat, emacs-devel@gnu.org To: Visuwesh Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Mon Sep 23 17:49:25 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 1sslJU-0007Z6-OP for ged-emacs-devel@m.gmane-mx.org; Mon, 23 Sep 2024 17:49:24 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sslIt-0006cg-F3; Mon, 23 Sep 2024 11:48:47 -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 1sslIn-0006cC-0l for emacs-devel@gnu.org; Mon, 23 Sep 2024 11:48:41 -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 1sslIm-0005MB-Cm; Mon, 23 Sep 2024 11:48:40 -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=4SnXuIuPGR0tavpxSUkpZJWe0KMMshO5pkF9VAYW1Vk=; b=ev+F4g5BxjCqD+uDgED5 255Ldqw09YJJx3MNdGuNRGbbuMq9zg/TKZcczhsnTAiYvCFZThwN19yFOV6WKq82NaDplvCfQGwrS J9UTCxHkQOTyyHmqUq1V/zzqaHh+dP0NAvUrcBZgE/1GTToavwMW7Jjcjdev/f3LktnO5eaMZTxK3 hD9iZfJH5OnmjdwJ4MmOnlgoxvc3rEcjBQ6N8qxcTBHkZRhdmtRCRDiPlR9glsbjONdbZAqfZzlfc XwzZiZOK9J955ELVeuKGYzDnFT0H/nWJqwvaRPAlnwBGORofzxqiBNW534N3Ejx11+ba179MTunpl BJNZaCmFIlAbuw==; In-Reply-To: <87v7ymwgsd.fsf@gmail.com> (message from Visuwesh on Mon, 23 Sep 2024 20:36:42 +0530) 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:323969 Archived-At: > From: Visuwesh > Cc: pinmacs@cas.cat, emacs-devel@gnu.org > Date: Mon, 23 Sep 2024 20:36:42 +0530 > > [திங்கள் செப்டம்பர் 23, 2024] Eli Zaretskii wrote: > > > The issue at hand here, AFAIU, is not the UI, but how Lisp programs > > (and Org in particular) can control this. If the issue is the user > > interface, then I honestly don't understand what issue is being > > brought up, because in that case we already have the correct and > > comprehensive solution, similar to what other advanced apps do in > > these cases. > > AFAIK, the OP wants to skip Emacs asking for the preferred format and > instead let her choose a specific format if already present. The goal > here is to keep the chit-chat with Emacs to a minimum which I understand > since I initially wrote the yank-media code for Org to keep manual > intervention to a minimum when linking to images, etc. I don't understand how can this work in principle, given the number of possibilities. It is not an incident that other applications that support similar functionality provide only 2 possibilities: either type the equivalent of C-y and get the format that the application decided you want, or select from the list of possible formats. I'm all ears to hear what other UIs could be useful in this case.