GNU bug report logs - #19473
posn-at-point fails in RTL paragraph

Previous Next

Package: emacs;

Reported by: Andreas Schwab <schwab <at> linux-m68k.org>

Date: Tue, 30 Dec 2014 16:33:01 UTC

Severity: normal

Done: Eli Zaretskii <eliz <at> gnu.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 19473 in the body.
You can then email your comments to 19473 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#19473; Package emacs. (Tue, 30 Dec 2014 16:33:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Andreas Schwab <schwab <at> linux-m68k.org>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Tue, 30 Dec 2014 16:33:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Andreas Schwab <schwab <at> linux-m68k.org>
To: bug-gnu-emacs <at> gnu.org
Subject: posn-at-point fails in RTL paragraph
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.

Andreas.

-- 
Andreas Schwab, schwab <at> linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."




Reply sent to Eli Zaretskii <eliz <at> gnu.org>:
You have taken responsibility. (Tue, 30 Dec 2014 17:35:02 GMT) Full text and rfc822 format available.

Notification sent to Andreas Schwab <schwab <at> linux-m68k.org>:
bug acknowledged by developer. (Tue, 30 Dec 2014 17:35:02 GMT) Full text and rfc822 format available.

Message #10 received at 19473-done <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Andreas Schwab <schwab <at> linux-m68k.org>
Cc: 19473-done <at> debbugs.gnu.org
Subject: Re: bug#19473: posn-at-point fails in RTL paragraph
Date: Tue, 30 Dec 2014 19:34:23 +0200
> From: Andreas Schwab <schwab <at> linux-m68k.org>
> 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.




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Wed, 28 Jan 2015 12:24:03 GMT) Full text and rfc822 format available.

This bug report was last modified 10 years and 140 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.