emacs-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[debbugs-tracker] bug#21271: closed (25.0.5; `field' text-property screw


From: GNU bug Tracking System
Subject: [debbugs-tracker] bug#21271: closed (25.0.5; `field' text-property screws with `line-end-position')
Date: Sat, 15 Aug 2015 23:11:01 +0000

Your message dated Sun, 16 Aug 2015 00:10:33 +0100
with message-id <address@hidden>
and subject line Re: bug#21271: 25.0.5; `field' text-property screws with 
`line-end-position'
has caused the debbugs.gnu.org bug report #21271,
regarding 25.0.5; `field' text-property screws with `line-end-position'
to be marked as done.

(If you believe you have received this mail in error, please contact
address@hidden)


-- 
21271: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=21271
GNU Bug Tracking System
Contact address@hidden with problems
--- 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 ---

reply via email to

[Prev in Thread] Current Thread [Next in Thread]