[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.
- Re: Image-conversion shims, Lars Ingebrigtsen, 2019/10/01
- Re: Image-conversion shims, Lars Ingebrigtsen, 2019/10/01
- Re: Image-conversion shims,
Juri Linkov <=
- Re: Image-conversion shims, Lars Ingebrigtsen, 2019/10/06
- Re: Image-conversion shims, Juri Linkov, 2019/10/07
- Re: Image-conversion shims, Lars Ingebrigtsen, 2019/10/08
- Re: Image-conversion shims, Stefan Monnier, 2019/10/08
- Re: Image-conversion shims, Lars Ingebrigtsen, 2019/10/09
- Re: Image-conversion shims, Stefan Monnier, 2019/10/09
- Re: Image-conversion shims, Lars Ingebrigtsen, 2019/10/14
- Re: Image-conversion shims, Juri Linkov, 2019/10/14
- Re: Image-conversion shims, Lars Ingebrigtsen, 2019/10/14