Next: Inserting And Deleting Objects, Previous: General Buffer Protocol Parts, Up: Buffer Protocol
Move the mark forward the number of positions indicated by count. This function could be implemented by an
incf
on the offset of the mark, but many buffer implementations can implement this function much more efficiently in a different way. Amotion-before-beginning
condition is signaled if the resulting offset of the mark is less than zero. Amotion-after-end
condition is signaled if the resulting offset of the mark is greater than the size of the buffer. Returnsmark
.
Move the mark backward the number of positions indicated by count. This function could be implemented by a
decf
on the offset of the mark, but many buffer implementations can implement this function much more efficiently in a different way. Amotion-before-beginning
condition is signaled if the resulting offset of the mark is less than zero. A motion-after-end condition is signaled if the resulting offset of the mark is greater than the size of the buffer. Returnsmark
.
Return
t
if the offset ofmark1
is equal to that ofmark2
. An error is signaled if the two marks are not positioned in the same buffer. It is acceptable to pass an offset in place of one of the marks.
Return
t
if the offset ofmark1
is strictly less than that ofmark2
. An error is signaled if the two marks are not positioned in the same buffer. It is acceptable to pass an offset in place of one of the marks.
Return
t
if the offset ofmark1
is less than or equal to that ofmark2
. An error is signaled if the two marks are not positioned in the same buffer. It is acceptable to pass an offset in place of one of the marks.
Return
t
if the offset ofmark1
is strictly greater than that ofmark2
. An error is signaled if the two marks are not positioned in the same buffer. It is acceptable to pass an offset in place of one of the marks.
Return
t
if the offset ofmark1
is greater than or equal to that ofmark2
. An error is signaled if the two marks are not positioned in the same buffer. It is acceptable to pass an offset in place of one of the marks.
Move the mark to the beginning of the buffer. This is equivalent to (setf (offset mark) 0), but returns mark.
Return
t
if the mark is at the beginning of the buffer, nil otherwise.
Return
t
if the mark is at the end of the buffer, NIL otherwise.
Move the mark to the beginning of the line. The mark will be positioned either immediately after the closest receding newline character, or at the beginning of the buffer if no preceding newline character exists. Returns
mark
.
Move the mark to the end of the line. The mark will be positioned either immediately before the closest following newline character, or at the end of the buffer if no following newline character exists. Returns
mark
.
Return
t
if the mark is at the beginning of the line (i.e., if the character preceding the mark is a newline character or if the mark is at the beginning of the buffer), NIL otherwise.
Return
t
if the mark is at the end of the line (i.e., if the character following the mark is a newline character, or if the mark is at the end of the buffer), NIL otherwise.
Return the line number of the offset. Lines are numbered from zero.
Return the column number of the offset. The column number of an offset is the number of objects between it and the preceding newline, or between it and the beginning of the buffer if the offset is on the first line of the buffer.