Subject: bug#21271: closed (Re: bug#21271: 25.0.5; `field' text-property screws with `line-end-position')

From: [email-masked] (GNU bug Tracking System)
Date: Sat, 15 Aug 2015 23:11:02 +0000

Your bug report

#21271: 25.0.5; `field' text-property screws with `line-end-position'

which was filed against the emacs package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to [email-masked].

-- 
21271: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=21271
GNU Bug Tracking System
Contact [email-masked] with problems

Subject: Re: bug#21271: 25.0.5; `field' text-property screws with `line-end-position'
From: Artur Malabarba <[email-masked]>
To: Drew Adams <[email-masked]>
Cc: [email-masked]
Date: Sun, 16 Aug 2015 00:10:33 +0100
List-Id: <debbugs-submit.debbugs.gnu.org>

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.

Subject: 25.0.5; `field' text-property screws with `line-end-position'
From: Artur Malabarba <[email-masked]>
To: [email-masked]
Date: Sat, 15 Aug 2015 22:59:03 +0100
List-Id: <debbugs-submit.debbugs.gnu.org>

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).