find-position-in-line in text%

Given a location within a line of the editor, returns the position at the location. Lines are numbered starting with 0.

The result is only valid when the editor is displayed (see Basic Organization). Calling this method may force the recalculation of location information, even if the editor currently has delayed refreshing (see refresh-delayed?).