[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#59841: 29.0.50; 'before-string' text property doesn't work
From: |
Eli Zaretskii |
Subject: |
bug#59841: 29.0.50; 'before-string' text property doesn't work |
Date: |
Tue, 06 Dec 2022 14:19:15 +0200 |
> From: Akib Azmain Turja <akib@disroot.org>
> Cc: 59841@debbugs.gnu.org
> Date: Tue, 06 Dec 2022 10:34:24 +0600
>
> >> Steps: 1. Open a clean fundamental mode buffer.
> >> 2. (insert (propertize "foo" 'before-string "bar"))
> >> 3. The buffer shows only "foo", but not "bar" before it.
> >
> > The code is incorrect: 'before-string' is an overlay property, not a text
> > property. So you need to define an overlay with a 'before-string' property
> > whose value is a string, and put a 'display' property on that string.
> >
>
> If that code is incorrect, the 'Display Margins' node of Emacs Lisp
> manual is also wrong. On the fourth paragraph, it says, "put a
> ‘before-string’ property on the text".
When did you last read the text of that node? ;-)
> The manual should be clear.
Yes, of course.