* bug#19473: posn-at-point fails in RTL paragraph
@ 2014-12-30 16:31 Andreas Schwab
2014-12-30 17:34 ` Eli Zaretskii
0 siblings, 1 reply; 2+ messages in thread
From: Andreas Schwab @ 2014-12-30 16:31 UTC (permalink / raw)
To: 19473
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@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."
^ permalink raw reply [flat|nested] 2+ messages in thread
* bug#19473: posn-at-point fails in RTL paragraph
2014-12-30 16:31 bug#19473: posn-at-point fails in RTL paragraph Andreas Schwab
@ 2014-12-30 17:34 ` Eli Zaretskii
0 siblings, 0 replies; 2+ messages in thread
From: Eli Zaretskii @ 2014-12-30 17:34 UTC (permalink / raw)
To: Andreas Schwab; +Cc: 19473-done
> From: Andreas Schwab <schwab@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.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2014-12-30 17:34 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-12-30 16:31 bug#19473: posn-at-point fails in RTL paragraph Andreas Schwab
2014-12-30 17:34 ` Eli Zaretskii
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.