all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* How to temporarily show an image in an Emacs buffer?
@ 2023-03-08  4:53 Marcin Borkowski
  2023-03-08  5:23 ` Marcin Borkowski
                   ` (2 more replies)
  0 siblings, 3 replies; 15+ messages in thread
From: Marcin Borkowski @ 2023-03-08  4:53 UTC (permalink / raw)
  To: Help Gnu Emacs mailing list

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:

xxxxxxxxxxxxxxxxxxxxxxxx
yyyyyyyyyyyyyyyyyyyyyyyy

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

xxxxxxxxxxxxxxxxxxxxxxxx
+----------------------+
|                      |
+----------------------+
yyyyyyyyyyyyyyyyyyyyyyyy

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?

TIA,

-- 
Marcin Borkowski
http://mbork.pl



^ permalink raw reply	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2023-04-01 15:57 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-03-08  4:53 How to temporarily show an image in an Emacs buffer? Marcin Borkowski
2023-03-08  5:23 ` Marcin Borkowski
2023-03-08  6:19   ` Ruijie Yu via Users list for the GNU Emacs text editor
2023-03-08 16:01     ` Marcin Borkowski
2023-03-08 16:41   ` Michael Heerdegen
2023-03-11  8:14     ` Marcin Borkowski
2023-03-12  3:37       ` Michael Heerdegen
2023-03-12  7:46         ` Marcin Borkowski
2023-03-08 13:38 ` Eli Zaretskii
2023-03-08 16:00   ` Marcin Borkowski
2023-03-13  8:29     ` Jean Louis
2023-03-13  9:27       ` Marcin Borkowski
2023-04-01 15:57       ` Marcin Borkowski
2023-03-10 16:26 ` Stefan Monnier via Users list for the GNU Emacs text editor
2023-03-11  8:15   ` Marcin Borkowski

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.