emacs-devel
[Top][All Lists]
Advanced

[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: pinmacs
Subject: Re: yank-media: allow users to limit image types that can be inserted
Date: Thu, 31 Oct 2024 11:47:42 +0100

With the Visuwesh patch everything is fine. A good default is not provided, but I see that as a "second part" for the discussion, even a second commit, so we get some progress done.

I was just saying that as a user I prefer to define on my own my custom commands for flexibility, but that is a user preference, not something to upstream to emacs core in terms of yank-media commands. I just tell that, to justify, why the flexible design of having that variable, that as Visuwesh, allows me to do that.

Maybe I am missing too but when you choose a format, you choose how you store and retain that information. Depending on what you are going to do with that images, you might be interested in different formats. That's why different users might want different media types.

On 2024-10-31 09:29, Eli Zaretskii wrote:
Date: Thu, 31 Oct 2024 00:22:57 +0100
From: Pedro <pedro@cas.cat>

The approach of this patch permits to have different yank commands with
different keybindings and context to respond to different needs (For the
things I care, I end up having two commands, one that is simple and fast
with the most preferred thing; and the other that gives all flexibility
and possibilities). So, happy to see flexibility here too.
Flexibility doesn't come for free, though: are you arguing for having
N yank-media commands, each with its own preference of media formats?
Which means the user will have to remember the preferences for each
command and allocate a separate key binding to each?  How is that a
good thing?

It might be useful to know why this is better: it is less error prone to
what I have now. Let me explain this: the other day, by mistake (being
in a hurry) I did several screen captures and I thought I was using .png
(I usually pick png on the first time, and then, by frequency, it
appears in the first position because of the completion tool
(vertico/orderless ?)). But I was wrong, I took .pbm, for that case,
that was fine, it was notes for me, but it could be the case of having
screen captures with the wrong format and having difficulty to generate
them again. This patch and approach helps the user to avoid that risk.
I don't understand that: how is the image format of the screen capture
relevant to yanking images into an Emacs buffer?  What am I missing?





reply via email to

[Prev in Thread] Current Thread [Next in Thread]