Although Jade stores the position of a character as a pair of two numbers many other programs define the position of a character as its offset from the beginning of the buffer or file it is in. The following functions may be used to convert between these two types of positions in a specified buffer.
(pos-to-offset (pos 0 0))
=> 0
(pos-to-offset)
=> 195654
(offset-to-pos 0)
=> #<pos 0 0>
(offset-to-pos 195654)
=> #<pos 14 5974>
Go to the first, previous, next, last section, table of contents.