Next: , Previous: Operations Related To The Offset Of Marks, Up: Buffer Protocol


18.4.1.3 Inserting And Deleting Objects

— Generic Function: drei-buffer:insert-buffer-object buffer offset object

Insert the object at the offset in the buffer. Any left-sticky marks that are placed at the offset will remain positioned before the inserted object. Any right-sticky marks that are placed at the offset will be positioned after the inserted object.

— Generic Function: drei-buffer:insert-buffer-sequence buffer offset sequence

Like calling insert-buffer-object on each of the objects in the sequence.

— Generic Function: drei-buffer:insert-object mark object

Insert the object at the mark. This function simply calls insert-buffer-object with the buffer and the position of the mark.

— Generic Function: drei-buffer:insert-sequence mark sequence

Insert the objects in the sequence at the mark. This function simply calls insert-buffer-sequence with the buffer and the position of the mark.

— Generic Function: drei-buffer:delete-buffer-range buffer offset n

Delete n objects from the buffer starting at the offset. If offset is negative or offset+n is greater than the size of the buffer, a no-such-offset condition is signaled.

— Generic Function: drei-buffer:delete-range mark &optional n

Delete n objects after (if n > 0) or before (if n < 0) the mark. This function eventually calls delete-buffer-range, provided that n is not zero.

— Generic Function: drei-buffer:delete-region offset1 mark2

Delete the objects in the buffer that are between mark1 and mark2. An error is signaled if the two marks are positioned in different buffers. It is acceptable to pass an offset in place of one of the marks. This function calls delete-buffer-range with the appropriate arguments.