Subject: bug#19473: closed (Re: bug#19473: posn-at-point fails in RTL paragraph)

From: [email-masked] (GNU bug Tracking System)
Date: Tue, 30 Dec 2014 17:35:02 +0000

Your bug report

#19473: posn-at-point fails in RTL paragraph

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

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

Subject: Re: bug#19473: posn-at-point fails in RTL paragraph
From: Eli Zaretskii <[email-masked]>
To: Andreas Schwab <[email-masked]>
Cc: [email-masked]
Date: Tue, 30 Dec 2014 19:34:23 +0200
List-Id: <debbugs-submit.debbugs.gnu.org>

> From: Andreas Schwab <[email-masked]>
> Date: Tue, 30 Dec 2014 17:31:53 +0100
> 
> posn-at-point returns the wrong position in RTL paragraphs.  For
> example, when visiting TUTORIAL.he, (= (event-start (posn-at-point)
> (point))) returns nil everywhere.
> 
> That appears to be because pos-visible-in-window-p returns (0 0) for
> (point-min) even though the RTL paragraph is aligned to the right.

Thanks for the report and the analysis.  I fixed this in commit
aa472a3 on the emacs-24 branch.

For the record: this never worked correctly for RTL text.

Subject: posn-at-point fails in RTL paragraph
From: Andreas Schwab <[email-masked]>
To: [email-masked]
Date: Tue, 30 Dec 2014 17:31:53 +0100
List-Id: <debbugs-submit.debbugs.gnu.org>

posn-at-point returns the wrong position in RTL paragraphs.  For
example, when visiting TUTORIAL.he, (= (event-start (posn-at-point)
(point))) returns nil everywhere.

That appears to be because pos-visible-in-window-p returns (0 0) for
(point-min) even though the RTL paragraph is aligned to the right.

Andreas.

-- 
Andreas Schwab, [email-masked]
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."