GNU bug report logs -
#59841
29.0.50; 'before-string' text property doesn't work
Previous Next
Reported by: Akib Azmain Turja <akib <at> disroot.org>
Date: Mon, 5 Dec 2022 18:46:01 UTC
Severity: normal
Tags: notabug
Found in version 29.0.50
Done: Stefan Kangas <stefankangas <at> gmail.com>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
> From: Akib Azmain Turja <akib <at> disroot.org>
> Cc: 59841 <at> 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.
This bug report was last modified 2 years and 162 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.