Returns the last position of a given line. Lines are numbered starting with 0.
Calling this method may force the recalculation of location information if a maximum width is set for the buffer, even if the buffer currently has delayed refreshing (see refresh-delayed?). If the buffer is not viewed (see Basic Organization) and a maximum width is set for the buffer, this method ignores the maximum width if the buffer has never been viewed, otherwise using the line breaks from the most recent view of the buffer (unadjusted by any insertions or deletions).
If there are fewer than line-1 lines, the end of the last line is returned. If line is less than 0, then the end of the first line is returned.
If the line ends with invisible items (such as a carriage return) and visible? is not #f, the first position before the invisible items is returned.