emacs-devel
[Top][All Lists]
Advanced

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

Re: How to find out whether an image is displayed anywhere?


From: Stefan Monnier
Subject: Re: How to find out whether an image is displayed anywhere?
Date: Thu, 30 Jun 2011 12:34:12 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux)

> Is there a way to query Emacs whether an image is actually displayed
> anywhere?  I looked through image.el, and I couldn't find anything...

There is a way: fontification-functions (aka "jit-lock").  It's a bit
round-about, but with enough work it should be possible to use it for
that purpose (e.g. use a timer to remove the `fontified' property every
N seconds and if it's still nil after an additional M seconds, then turn
off animation.  Or maybe better: after the animation timer fires don't
change the image yet but instead only remove the fontified property and
then change the image from fontification-functions).


        Stefan



reply via email to

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