...
original commit: f2d8b98c45628e50c069a5ba4e36c8bd77f34884
This commit is contained in:
parent
4268c95ad5
commit
315e52614a
|
@ -309,7 +309,7 @@
|
|||
(lambda args
|
||||
(let loop ([n 0])
|
||||
(if (< n (send result-list get-number))
|
||||
(if (send result-list selected? n)
|
||||
(if (send result-list is-selected? n)
|
||||
(begin
|
||||
(send result-list delete n)
|
||||
(loop n))
|
||||
|
|
|
@ -94,7 +94,8 @@
|
|||
(lambda (filename)
|
||||
(handler:edit-file filename))])
|
||||
|
||||
(inherit change-children)
|
||||
;; added call to set label here to hopefully work around a problem in mac mred
|
||||
(inherit set-label change-children)
|
||||
(override
|
||||
[after-new-child
|
||||
(lambda (child)
|
||||
|
@ -127,7 +128,7 @@
|
|||
[parent style]
|
||||
[mdi-parent (cons 'mdi-child style)]
|
||||
[else style])))
|
||||
|
||||
|
||||
(accept-drop-files #t)
|
||||
|
||||
(make-object menu% "&Windows" (make-object (get-menu-bar%) this))
|
||||
|
|
|
@ -142,34 +142,44 @@
|
|||
ov))))])
|
||||
(pretty-print sexp)
|
||||
(newline)))])
|
||||
(printf "1~n")
|
||||
(unless (and in-port
|
||||
out-port
|
||||
(or (not (char-ready? in-port))
|
||||
(not (eof-object? (peek-char in-port)))))
|
||||
(restart-mred))
|
||||
(printf " ~a // ~a: sending to mred:~n" section-name test-name)
|
||||
(printf "2~n")
|
||||
(show-text sexp)
|
||||
(printf "3~n")
|
||||
(write sexp out-port)
|
||||
(printf "4~n")
|
||||
(newline out-port)
|
||||
(printf "5~n")
|
||||
(let ([answer
|
||||
(with-handlers ([(lambda (x) #t)
|
||||
(lambda (x) (list 'cant-read
|
||||
(string-append
|
||||
(exn-message x)
|
||||
"; rest of string: "
|
||||
(apply
|
||||
string
|
||||
(let loop ()
|
||||
(if (char-ready? in-port)
|
||||
(cons (read-char in-port)
|
||||
(loop))
|
||||
null))))))])
|
||||
(lambda (x)
|
||||
(printf "8 ~a~n" (exn-message x))
|
||||
(list 'cant-read
|
||||
(string-append
|
||||
(exn-message x)
|
||||
"; rest of string: "
|
||||
(apply
|
||||
string
|
||||
(let loop ()
|
||||
(if (char-ready? in-port)
|
||||
(cons (read-char in-port)
|
||||
(loop))
|
||||
null))))))])
|
||||
(printf "6~n")
|
||||
(read in-port))])
|
||||
(unless (or (eof-object? answer)
|
||||
(and (list? answer)
|
||||
(= 2 (length answer))))
|
||||
(error 'send-sexp-to-mred "unpected result from mred: ~s~n" answer))
|
||||
|
||||
(printf "7~n")
|
||||
|
||||
(if (eof-object? answer)
|
||||
(raise (make-eof-result))
|
||||
(case (car answer)
|
||||
|
|
Loading…
Reference in New Issue
Block a user