--- Begin Message ---
Subject: |
25.0.5; `field' text-property screws with `line-end-position' |
Date: |
Sat, 15 Aug 2015 22:59:03 +0100 |
1. In an empty buffer, hit RET and type some text on the second line.
2. Place point at the start of the second line.
3. Run (line-end-position) and verify that the value is correct
(something greater than 3)
4. Run (add-text-properties (1- (point)) (point) '(field 1))
5. Run (line-end-position) and you'll get 2 (which is the poistion of
the end of the field).
--- End Message ---
--- Begin Message ---
Subject: |
Re: bug#21271: 25.0.5; `field' text-property screws with `line-end-position' |
Date: |
Sun, 16 Aug 2015 00:10:33 +0100 |
Thanks Drew. I was so used to this function and so surprised about
this behavior that it didn't even occur to me to read the docstring
more carefully. That even explains how to prevent it.
I'm closing this now.
--- End Message ---