Not quite the right fix - will do this properly later.

This commit is contained in:
Alex Shinn 2013-02-20 22:10:57 +09:00
parent cd0a6bd41f
commit a32ae03add

View file

@ -31,7 +31,7 @@
(define (complete-sexp? str)
(call-with-input-string str
(lambda (in)
(let lp () (or (eof-object? (read/ss in)) (lp))))))
(let lp () (if (not (eof-object? (read/ss in))) (lp))))))
(define (read-line/complete-sexp in)
(let lp ((res ""))
@ -46,7 +46,7 @@
(lp res))))))))
(define (buffer-complete-sexp? buf)
(guard (exn (else #f)) (complete-sexp? (buffer->string buf))))
(complete-sexp? (buffer->string buf)))
(define module? vector?)
(define (module-env mod) (vector-ref mod 1))