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

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

Re: How to use display text property with after-string?


From: Eli Zaretskii
Subject: Re: How to use display text property with after-string?
Date: Fri, 21 Oct 2016 10:35:11 +0300

> From: Marcin Borkowski <address@hidden>
> Date: Fri, 21 Oct 2016 08:15:31 +0200
> 
> --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?

The 'display' property doesn't support after-string, only the overlay
properties do.



reply via email to

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