Subject: Re: bug#45054: 27.1; Can get point into the middle of a run of characters with a replacing display spec

From: Eli Zaretskii <[email-masked]>
Date: Sat, 05 Dec 2020 22:30:03 +0200

> Date: Sat, 05 Dec 2020 18:18:15 +0200
> From: Eli Zaretskii <[email-masked]>
> Cc: [email-masked]
> 
> > 4. Is there a better way to do this sort of visual replacement of runs
> >    of text?  This is the first time I’ve done any serious elisp
> >    programming, I might have missed something.
> 
> Sounds the right way to me (modulo making the text invisible).

As an alternative, you could try the technique used by
prettify-symbols-mode.