[Top][All Lists]

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

How to temporarily show an image in an Emacs buffer?

From: Marcin Borkowski
Subject: How to temporarily show an image in an Emacs buffer?
Date: Wed, 08 Mar 2023 05:53:46 +0100
User-agent: mu4e 1.1.0; emacs 30.0.50

Hi all,

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?

To be more precise, imagine I have this buffer:


(two lines of text).  I want it to look like this:

|                      |

in other words, I want a rectangular image (inserted by `insert-image'
or actually `svg-insert-image') to appear between them, but in a way
that doesn't actually change the buffer contents.

Alternatively, it _may_ change the buffer contents but in a way that is
not recorded in `buffer-undo-list'.  Is that possible?


Marcin Borkowski

reply via email to

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