Next: Kill Ring Implementation, Up: Kill Ring Protocol
Class precedence list:
kill-ring, standard-object, slot-object, t
Slots:
max-size
— initargs::max-size
The limitation placed upon the number of elements held by the kill ring. Once the maximum size has been reached, older entries must first be removed before new ones can be added. When altered, any surplus elements will be silently dropped.
cursorchain
The cursorchain associated with the kill ring.
yankpoint
The flexicursor associated with the kill ring.
A class for all kill rings
Returns the current length of the kill-ring. Note this is different than
kill-ring-max-size
.
Pushes a vector of objects onto the kill ring creating a new start of ring position. This function is much like an everyday Lisp push with size considerations. If the length of the kill ring is greater than the maximum size, then "older" elements will be removed from the ring until the maximum size is reached.
Concatenates the contents of vector onto the end of the current contents of the top of the kill ring. If the kill ring is empty the a new entry is pushed.
Concatenates the contents of vector onto the front of the current contents of the top of the kill ring. If the kill ring is empty a new entry is pushed.
Moves the yank point associated with a kill-ring one or times many positions away from the start of ring position. If times is greater than the current length then the cursor will wrap to the start of ring position and continue rotating.
Moves the current yank point back to the start of of kill ring position
Returns the vector of objects currently pointed to by the cursor. If
reset
ist
, a call toreset-yank-position
is called before the object is yanked. The default for reset is NIL. If the kill ring is empty, a condition of typeempty-kill-ring
is signalled.