From: Eli Zaretskii <eliz@gnu.org>
To: pinmacs <pinmacs@cas.cat>
Cc: emacs-devel@gnu.org
Subject: Re: yank-media: allow users to limit image types that can be inserted
Date: Mon, 23 Sep 2024 14:20:39 +0300 [thread overview]
Message-ID: <86ed5ahb08.fsf@gnu.org> (raw)
In-Reply-To: <79fc91f3-c2c3-44db-9817-595808917f26@cas.cat> (message from pinmacs on Sun, 22 Sep 2024 13:53:06 -0300)
> Date: Sun, 22 Sep 2024 13:53:06 -0300
> From: pinmacs <pinmacs@cas.cat>
>
> I submitted the following Feature Request in the orgmode list [1]. They
> said that the second part related to "limitting image types that can be
> inserted" should be done in the core emacs side.
>
> In that same thread [1], Ihor proposed different ways to implement it
> [2], I also took how it explained the feature as part of this email-subject.
>
> The thing is that with orgmode we can easily attach images to buffer
> thanks to `yank-media' feature, but there is a dialogue we cannot skip
> and that is: selecting image types. Find attached an image file
> "selecting-image-types.png", where you can see the 7 candidates for a
> screenshot I did to serve as an example.
>
> 1. In case I want to be fast, I would like to skip that dialog entirely
> and just use the image/png variant.
> 2. In another perspective, I would consider that the relevant decision
> for a screenshot would be between two of them: image/png and image/jpeg
> 3. Another user could argue why the other 5 types are interesting in
> general or for their particular use case...
>
> ... but let's stop that discussion here. Looks like filtering image
> types would be a useful customization for the users. If done as a
> variable, in certain cases, that could be local binded and specific to
> some fast function that immediately inserts an image, and in another
> case, the global var would select only those image types relevant for
> that particular user.
>
> That is also positive if users want to add even more image types, with a
> good and reasonable default, users will not worry about too many options
> at some point.
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.
Thanks.
next prev parent reply other threads:[~2024-09-23 11:20 UTC|newest]
Thread overview: 34+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-09-22 16:53 yank-media: allow users to limit image types that can be inserted pinmacs
2024-09-23 11:20 ` Eli Zaretskii [this message]
2024-09-23 13:46 ` Visuwesh
2024-09-23 14:30 ` Eli Zaretskii
2024-09-23 15:06 ` Visuwesh
2024-09-23 15:48 ` Eli Zaretskii
2024-09-23 15:09 ` Robert Pluim
2024-09-23 15:14 ` Visuwesh
2024-09-23 15:20 ` Robert Pluim
2024-09-23 15:58 ` Eli Zaretskii
2024-09-24 5:00 ` Visuwesh
2024-09-24 5:10 ` Visuwesh
2024-09-24 11:57 ` Eli Zaretskii
2024-09-24 12:42 ` Visuwesh
2024-09-23 15:54 ` Eli Zaretskii
2024-09-23 16:10 ` Robert Pluim
2024-09-23 16:34 ` Eli Zaretskii
2024-09-23 18:00 ` pinmacs
2024-09-23 18:35 ` Eli Zaretskii
2024-09-23 20:45 ` Pedro
2024-09-23 21:08 ` pinmacs
2024-09-24 8:15 ` Robert Pluim
2024-09-24 11:30 ` Eli Zaretskii
2024-09-24 12:18 ` Robert Pluim
2024-09-24 13:08 ` Eli Zaretskii
2024-09-24 13:38 ` Visuwesh
2024-09-24 13:50 ` Eli Zaretskii
2024-09-24 5:08 ` Visuwesh
2024-09-24 12:00 ` Eli Zaretskii
2024-09-24 12:50 ` Visuwesh
2024-09-24 13:23 ` Eli Zaretskii
2024-09-24 13:37 ` Visuwesh
2024-09-23 18:11 ` Eli Zaretskii
2024-09-24 8:38 ` Robert Pluim
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=86ed5ahb08.fsf@gnu.org \
--to=eliz@gnu.org \
--cc=emacs-devel@gnu.org \
--cc=pinmacs@cas.cat \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).