Add mutators to BUFFER records
This commit is contained in:
parent
cfec39d156
commit
41ac53c7e8
|
@ -46,17 +46,16 @@
|
||||||
num-cols
|
num-cols
|
||||||
can-write
|
can-write
|
||||||
history-pos)
|
history-pos)
|
||||||
(text buffer-text)
|
(text buffer-text set-buffer-text!)
|
||||||
(pos-line buffer-pos-line)
|
(pos-line buffer-pos-line set-buffer-pos-line!)
|
||||||
(pos-col buffer-pos-col)
|
(pos-col buffer-pos-col set-buffer-pos-col!)
|
||||||
(pos-fin-ln buffer-pos-fin-ln)
|
(pos-fin-ln buffer-pos-fin-ln set-buffer-pos-fin-ln!)
|
||||||
(pos-y buffer-pos-y)
|
(pos-y buffer-pos-y set-buffer-pos-y!)
|
||||||
(pos-x buffer-pos-x)
|
(pos-x buffer-pos-x set-buffer-pos-x!)
|
||||||
(num-lines buffer-num-lines)
|
(num-lines buffer-num-lines set-buffer-num-lines!)
|
||||||
(num-cols buffer-num-cols)
|
(num-cols buffer-num-cols set-buffer-num-cols!)
|
||||||
(can-write buffer-can-write)
|
(can-write buffer-can-write set-buffer-can-write!)
|
||||||
(history-pos buffer-history-pos))
|
(history-pos buffer-history-pos set-buffer-history-pos!))
|
||||||
|
|
||||||
|
|
||||||
;;handle input
|
;;handle input
|
||||||
(define input
|
(define input
|
||||||
|
|
|
@ -342,15 +342,25 @@
|
||||||
|
|
||||||
buffer
|
buffer
|
||||||
buffer-text
|
buffer-text
|
||||||
|
set-buffer-text!
|
||||||
buffer-pos-line
|
buffer-pos-line
|
||||||
|
set-buffer-pos-line!
|
||||||
buffer-pos-col
|
buffer-pos-col
|
||||||
|
set-buffer-pos-col!
|
||||||
buffer-pos-fin-ln
|
buffer-pos-fin-ln
|
||||||
|
set-buffer-pos-fin-ln!
|
||||||
buffer-pos-y
|
buffer-pos-y
|
||||||
|
set-buffer-pos-y!
|
||||||
buffer-pos-x
|
buffer-pos-x
|
||||||
|
set-buffer-pos-x!
|
||||||
buffer-num-lines
|
buffer-num-lines
|
||||||
|
set-buffer-num-lines!
|
||||||
buffer-num-cols
|
buffer-num-cols
|
||||||
|
set-buffer-num-cols!
|
||||||
buffer-can-write
|
buffer-can-write
|
||||||
|
set-buffer-can-write!
|
||||||
buffer-history-pos
|
buffer-history-pos
|
||||||
|
set-buffer-history-pos!
|
||||||
make-buffer
|
make-buffer
|
||||||
input
|
input
|
||||||
print-command-buffer
|
print-command-buffer
|
||||||
|
|
Loading…
Reference in New Issue