help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: How to temporarily show an image in an Emacs buffer?


From: Eli Zaretskii
Subject: Re: How to temporarily show an image in an Emacs buffer?
Date: Wed, 08 Mar 2023 15:38:59 +0200

> From: Marcin Borkowski <mbork@mbork.pl>
> Date: Wed, 08 Mar 2023 05:53:46 +0100
> 
> I need to insert an image in the buffer in a way that doesn't interfere
> with the undo mechanism.  In other words, `insert-image' won't help me
> because (as I understand it) it needs to insert a space or some other
> string so that it can put display property on it.  How to achieve this?

You can put a display property on the existing text in the buffer
without inserting any new text.  See the node "Other Display
Properties" in the ELisp manual, where it describes the
‘(image . IMAGE-PROPS)’ display property spec.



reply via email to

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