[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Lazy image converters
From: |
Stefan Monnier |
Subject: |
Re: Lazy image converters |
Date: |
Sun, 16 Feb 2020 10:20:20 -0500 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) |
> What if we have a lazy image, so its FILE-OR-DATA is calculated at
> redisplay time. 'image-convert' could utilize this. One of the approaches
> to lazy images is to allow FILE-OR-DATA to be a function returning actual
> file or data. Redisplay could call this func and substitute the value of
> FILE-OR-DATA in image spec with the results, kind of caching the results.
It's definitely worth a try.
Maybe we can do that using the existing jit-lock hook?
Stefan