emacs-devel
[Top][All Lists]
Advanced

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

Re: Pixel-based display functions


From: Eli Zaretskii
Subject: Re: Pixel-based display functions
Date: Sun, 01 Feb 2015 20:42:57 +0200

> Date: Sun, 01 Feb 2015 20:36:19 +0200
> From: Eli Zaretskii <address@hidden>
> Cc: address@hidden, address@hidden, address@hidden
> 
> Unless, that is, you mean R2L lines (and not R2L text within a L2R
> line), in which case you indeed need to offset the X coordinate by the
> window's text-box width.  This needs to be done in move_it_to.  See
> near the end of pos_visible_p for how this is done.

Sorry, that was a thinko: there's no need to change anything, since
move_it_to works in left-to-right geometry even when it traverses R2L
lines.  So it will measure the pixel length of each line correctly.

Interpretation of the result, when the region FROM..TO includes both
L2R and R2L lines is another matter.  But that's not your problem,
it's the problem of whoever calls the function ;-)



reply via email to

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