Check for unknwon messages in std-viewer
This commit is contained in:
parent
bfd61dfe44
commit
70fefe9a95
|
@ -149,6 +149,7 @@
|
||||||
(define-structure standard-viewer
|
(define-structure standard-viewer
|
||||||
(export make-standard-viewer)
|
(export make-standard-viewer)
|
||||||
(open scheme
|
(open scheme
|
||||||
|
srfi-23
|
||||||
|
|
||||||
tty-debug
|
tty-debug
|
||||||
objects
|
objects
|
||||||
|
|
|
@ -6,6 +6,7 @@
|
||||||
(exp->string value)
|
(exp->string value)
|
||||||
(result-buffer-num-cols buffer))))
|
(result-buffer-num-cols buffer))))
|
||||||
(lambda (message)
|
(lambda (message)
|
||||||
|
(debug-message "message for make-standard-viewer" message)
|
||||||
(cond
|
(cond
|
||||||
((eq? message 'paint)
|
((eq? message 'paint)
|
||||||
(lambda (self win buffer have-focus?)
|
(lambda (self win buffer have-focus?)
|
||||||
|
@ -15,5 +16,7 @@
|
||||||
|
|
||||||
((eq? message 'key-press)
|
((eq? message 'key-press)
|
||||||
(lambda (self . ignore)
|
(lambda (self . ignore)
|
||||||
self))))))
|
self))
|
||||||
|
(else
|
||||||
|
(error "unknwon message in make-standard-viewer" message))))))
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue