Skip to content

Instantly share code, notes, and snippets.

@lokedhs
Created October 10, 2019 15:09
Show Gist options
  • Save lokedhs/714626d90457d4b269b48cd9cc8a75c5 to your computer and use it in GitHub Desktop.
Save lokedhs/714626d90457d4b269b48cd9cc8a75c5 to your computer and use it in GitHub Desktop.
(defun foo ()
(let* ((line (make-instance 'cluffer-standard-line:line))
(buf (make-instance 'cluffer-standard-buffer:buffer :initial-line line))
(cursor (make-instance 'cluffer-standard-line:right-sticky-cursor)))
(cluffer:attach-cursor cursor line)
(cluffer:insert-item cursor "foo")
(cluffer:insert-item cursor "bar")
buf))
#| Output:
There is no applicable method for the generic function
#<STANDARD-GENERIC-FUNCTION CLUFFER:ITEM-COUNT (6)>
when called with arguments
(#<CLUFFER-STANDARD-LINE:LINE {100A96A3F3}>).
[Condition of type SB-PCL::NO-APPLICABLE-METHOD-ERROR]
See also:
Common Lisp Hyperspec, 7.6.6 [:section]
|#
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment