emacs-devel
[Top][All Lists]
Advanced

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

Re: Image-conversion shims


From: Lars Ingebrigtsen
Subject: Re: Image-conversion shims
Date: Sun, 29 Sep 2019 01:29:48 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux)

Stefan Monnier <address@hidden> writes:

> Go for it. 

I went for it.

(setq convert-images-externally t)
(insert-image (create-image "/var/tmp/1sm.webp"))

now works for me.

It doesn't work in image-mode yet, because I was unsure at what point to
hook the auto-mode stuff together with this stuff.  It's slightly
chicken and egg -- convert-images-externally isn't consulted before we
try to display an image, and it will then compute what image suffixes it
can handle.

But if that hasn't been computed, then image-mode won't be triggered,
and so create-image won't be called.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no



reply via email to

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