emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Image-conversion shims


From: Juri Linkov
Subject: Re: Image-conversion shims
Date: Sun, 06 Oct 2019 23:58:38 +0300
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (x86_64-pc-linux-gnu)

> I.e., we want ("*.webp" . image-mode) in auto-mode-alist, but we can't
> put it there before we've called "gm convert -list format", and we don't
> do that until we call `create-image' with image-use-external-converter
> non-nil, which won't be called since we don't have a mapping from
> "*.webp" to image-mode.
>
> Very chicken and egg.
>
> Hm...  One possibility would be to do away with
>
> (setq image-use-external-converter t)
>
> as a user-level thing, and instead tell them to do
>
> (image-external-converter-mode)
>
> in ~/.emacs, which would do the probing and then altering
> auto-mode-alist.  Hm.  Perhaps that's a pretty clean idea?  Hm...  I
> think so.  Except that switching the mode off would have to remove the
> entries from auto-mode-alist again, which sounds slightly destructive.

We already have a working solution with imagemagick-register-types,
imagemagick-types-inhibit, imagemagick-enabled-types, and all related code.
Customization should be no different when images are handled via a process
instead of using a linked library.



reply via email to

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