[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Unable to set 'display text property, but can set other props
From: |
Eli Zaretskii |
Subject: |
Re: Unable to set 'display text property, but can set other props |
Date: |
Fri, 11 Sep 2020 21:34:38 +0300 |
> From: Göktuğ Kayaalp <self@gkayaalp.com>
> Date: Fri, 11 Sep 2020 20:35:40 +0300
>
> What I’m trying to do is to expand one space character enough to align
> the text following the character on the same line to the right edge of
> the window.
>
> Problem is, while I can set properties like 'help-echo on the region, I
> can’t set 'display. I’ve tried variations of the below with `(space
> . (:width ...)) too.
>
> Maths is probably somewhat off, but the actual problem is that I can’t
> set any 'display props, e.g. ‘STRING’ too.
>
> I’ve tried just using things akin to
>
> (put-text-property 67 68 'display '(space-width 10))
>
> using M-:.
>
> Why is this happening? Am I doing something very obviously wrong? Or
> is it something else?
The character at buffer position where you put this property must be a
SPC character.