[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: |
Ihor Radchenko |
Subject: |
Re: yank-media: allow users to limit image types that can be inserted |
Date: |
Sun, 27 Oct 2024 08:17:22 +0000 |
Eli Zaretskii <eliz@gnu.org> writes:
>
>> Does it mean that you are not against an equivalent variable that can be
>> used from Elisp? I think that it might be good enough for Org mode
>> purposes and, if deemed necessary, may be later converted to user option.
>
> If a Lisp program wants to control which MIME types are preferred, it
> can do that already by changing the list of handlers, no? I'm sure I
> said that at some point in the discussion.
Let me try to explain in my own words.
Consider the following 3 scenarios:
1. clipboard contains 2 MIME types: image/png, image/bmp
2. clipboard contains 1 MIME type: image/png
3. clipboard contains 1 MIME type: image/bmp
We want to handle all three scenarios in the following way:
1. Select image/png (prefer it over image/bmp)
2. Select image/png
3. Select image/bmp (there is no image/png that we would prefer otherwise)
In all three cases, we do not want to prompt user about mimetype choice.
How can we do it using the existing Elisp API?
> [It's hard to pick up a discussion which stopped a month ago.]
Aside: It is not the first time you mention this problem, and I am
wondering how can it be. The full discussion is recorded in the mailing
list archives and possibly available from your MUA from thread view (is
it not?).
--
Ihor Radchenko // yantar92,
Org mode contributor,
Learn more about Org mode at <https://orgmode.org/>.
Support Org development at <https://liberapay.com/org-mode>,
or support my work at <https://liberapay.com/yantar92>
- Re: yank-media: allow users to limit image types that can be inserted, Ihor Radchenko, 2024/10/26
- Re: yank-media: allow users to limit image types that can be inserted, Eli Zaretskii, 2024/10/26
- Re: yank-media: allow users to limit image types that can be inserted,
Ihor Radchenko <=
- Re: yank-media: allow users to limit image types that can be inserted, Eli Zaretskii, 2024/10/27
- Re: yank-media: allow users to limit image types that can be inserted, Visuwesh, 2024/10/27
- Re: yank-media: allow users to limit image types that can be inserted, Eli Zaretskii, 2024/10/27
- Re: yank-media: allow users to limit image types that can be inserted, Visuwesh, 2024/10/27
- Re: yank-media: allow users to limit image types that can be inserted, Eli Zaretskii, 2024/10/27
- Re: yank-media: allow users to limit image types that can be inserted, Visuwesh, 2024/10/28
- Re: yank-media: allow users to limit image types that can be inserted, Visuwesh, 2024/10/29
- Re: yank-media: allow users to limit image types that can be inserted, Pedro, 2024/10/31
- Re: yank-media: allow users to limit image types that can be inserted, Eli Zaretskii, 2024/10/31
- Re: yank-media: allow users to limit image types that can be inserted, pinmacs, 2024/10/31