[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
How to use display text property with after-string?
From: |
Marcin Borkowski |
Subject: |
How to use display text property with after-string? |
Date: |
Fri, 21 Oct 2016 08:15:31 +0200 |
User-agent: |
mu4e 0.9.17; emacs 26.0.50.1 |
Hi all,
I want to set the "display" text property so that some text is displayed
after the buffer part I'm setting the property to. However, I can't do
it. Consider an Elisp buffer with these contents:
--8<---------------cut here---------------start------------->8---
;; this is a comment
(put-text-property 14 21 'display '(after-string " which is cool!"))
--8<---------------cut here---------------end--------------->8---
After C-x C-e with point at the end, I see this:
--8<---------------cut here---------------start------------->8---
;; this is a comment
(put-text-property 14 21 'display '(after-string " which is cool!"))
--8<---------------cut here---------------end--------------->8---
but I expected this:
--8<---------------cut here---------------start------------->8---
;; this is a commentcomment
(put-text-property 14 21 'display '(after-string " which is cool!"))
--8<---------------cut here---------------end--------------->8---
What am I doing wrong?
TIA,
--
Marcin Borkowski