edwin: Add input-event unparser. Fix inferior unparser.
authorMatt Birkholz <matt@birchwood-abbey.net>
Tue, 7 Mar 2017 03:43:56 +0000 (20:43 -0700)
committerMatt Birkholz <matt@birchwood-abbey.net>
Tue, 7 Mar 2017 04:23:14 +0000 (21:23 -0700)
src/edwin/editor.scm
src/edwin/window.scm

index ef6772a98f09c7c0a5cf8b955e0e908d381253d3..e74655e9c87f0fd6b84b4412f1e63267b633d7aa 100644 (file)
@@ -440,7 +440,13 @@ TRANSCRIPT    messages appear in transcript buffer, if it is enabled;
 
 (define-structure (input-event
                   (constructor make-input-event (type operator . operands))
-                  (conc-name input-event/))
+                  (conc-name input-event/)
+                  (print-procedure
+                   (standard-unparser-method
+                    'input-event
+                    (lambda (event port)
+                      (write-char #\space port)
+                      (write (input-event/type event) port)))))
   (type #f read-only #t)
   (operator #f read-only #t)
   (operands #f read-only #t))
index be16a8281b46725b244fe6a6af446190301d36c7..b5dfb87015b45a3d15772faa4399a64bda2a9ec9 100644 (file)
@@ -366,6 +366,7 @@ USA.
 (unparser/set-tagged-vector-method! %inferior-tag
   (standard-unparser-method 'INFERIOR
     (lambda (inferior port)
+      (write-string " " port)
       (write (inferior-window inferior) port)
       (write-string " x,y=(" port)
       (write (inferior-x-start inferior) port)