emacs-devel
[Top][All Lists]
Advanced

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

Re: There should be an option to set the display size of an image to zer


From: Stefan Monnier
Subject: Re: There should be an option to set the display size of an image to zero
Date: Wed, 18 Sep 2013 12:10:44 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux)

> One possible idea -- not sure if it fits the purpose -- is to overlay
> transparent-background images on top of the displayed text, not unlike
> what we do with mouse pointers.

That's the idea, I think, yes.

Combined with posn-point which lets us find the XY coordinates of
a particular buffer position, it should be possible to build (in Elisp)
the right SVG image and tell Emacs to overlay it on top the text.

Ideally, the primitive could look like a `display' spec which says
"overlay the image at offset XY relative to the current position".
But if it's too difficult to handle it that way, a simpler (from the
C code PoV) approach might be a window property which says "overlay this
image over the whole window's text".


        Stefan



reply via email to

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