[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: yank-media: allow users to limit image types that can be inserted
From: |
Visuwesh |
Subject: |
Re: yank-media: allow users to limit image types that can be inserted |
Date: |
Mon, 23 Sep 2024 20:36:42 +0530 |
User-agent: |
Gnus/5.13 (Gnus v5.13) |
[திங்கள் செப்டம்பர் 23, 2024] Eli Zaretskii wrote:
>> From: Visuwesh <visuweshm@gmail.com>
>> Cc: pinmacs <pinmacs@cas.cat>, emacs-devel@gnu.org
>> Date: Mon, 23 Sep 2024 19:16:23 +0530
>>
>> [திங்கள் செப்டம்பர் 23, 2024] Eli Zaretskii wrote:
>>
>> > Isn't this already possible by using yank-media-handler to register
>> > only the handlers the Lisp program wants to handle? If that doesn't
>> > fit the bill, please explain why.
>>
>> When you copy an image in Firefox, it puts both image/png and image/jpeg
>> in the clipboard. The Lisp program could register a handle for
>> image/png but if the non-Emacs program puts only, say, image/jpeg then
>> we wouldn't be able to handle the image anymore. For the most part, the
>> Lisp program wouldn't care about the specific format of the image but
>> the fact that it is an image. An user option that would tell the
>> preferred type in the presence of _multiple_ matches for the handler's
>> regexp would be nice to have.
>
> IMO, for users we already have what is needed: when we detect several
> formats, we show them to the user and ask him/her to tell us which
> format he/she wants to use.
[ IMO also, the current interface is fine. ]
> 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.
- yank-media: allow users to limit image types that can be inserted, pinmacs, 2024/09/22
- Re: yank-media: allow users to limit image types that can be inserted, Eli Zaretskii, 2024/09/23
- Re: yank-media: allow users to limit image types that can be inserted, Visuwesh, 2024/09/23
- Re: yank-media: allow users to limit image types that can be inserted, Robert Pluim, 2024/09/23
- Re: yank-media: allow users to limit image types that can be inserted, Visuwesh, 2024/09/23
- Re: yank-media: allow users to limit image types that can be inserted, Robert Pluim, 2024/09/23
- Re: yank-media: allow users to limit image types that can be inserted, Eli Zaretskii, 2024/09/23
- Re: yank-media: allow users to limit image types that can be inserted, Visuwesh, 2024/09/24
- Re: yank-media: allow users to limit image types that can be inserted, Visuwesh, 2024/09/24
- Re: yank-media: allow users to limit image types that can be inserted, Eli Zaretskii, 2024/09/24
- Re: yank-media: allow users to limit image types that can be inserted, Visuwesh, 2024/09/24
- Re: yank-media: allow users to limit image types that can be inserted, Eli Zaretskii, 2024/09/23