edwin/buffer: Add print procedure.
authorMatt Birkholz <matt@birchwood-abbey.net>
Sat, 26 Aug 2017 16:15:48 +0000 (09:15 -0700)
committerMatt Birkholz <matt@birchwood-abbey.net>
Mon, 28 Aug 2017 18:28:18 +0000 (11:28 -0700)
src/edwin/buffer.scm

index 14ac16a067d8c53cd40f974b2f18a26ccacb56c3..8fa83c5e669fab786990883f21c2a2043d0abe8b 100644 (file)
@@ -29,7 +29,11 @@ USA.
 (declare (usual-integrations))
 \f
 (define-structure (buffer
-                  (constructor %make-buffer (%name %default-directory)))
+                  (constructor %make-buffer (%name %default-directory))
+                  (print-procedure
+                   (simple-unparser-method 'BUFFER
+                     (lambda (buffer)
+                       (list (buffer-name buffer))))))
   %name
   group
   mark-ring