fixed PRs 7783 7785

svn: r1731

original commit: 00d989a80a77036e5acface1595665984c2b114a
This commit is contained in:
Robby Findler 2005-12-31 14:23:49 +00:00
parent a07df2f859
commit 164be1ab3e
3 changed files with 8 additions and 5 deletions

View File

@ -162,7 +162,8 @@
;; split/collapse-text : (instanceof menu%) (instanceof editor<%>) (instanceof mouse-event%) -> void
(define (split/collapse-text menu text event)
(when (is-a? text -text<%>)
(when (and (is-a? text -text<%>)
(not (send text is-frozen?)))
(let* ([on-it-box (box #f)]
[click-pos
(call-with-values

View File

@ -1434,7 +1434,9 @@ WARNING: printf is rebound in the body of the unit to always
(make-write-special-proc value-style)))
(let ([install-handlers
(λ (port)
(set-interactive-print-handler port)
;; don't want to set the port-print-handler here;
;; instead drscheme sets the global-port-print-handler
;; to catch fractions and the like
(set-interactive-write-handler port)
(set-interactive-display-handler port))])
(install-handlers out-port)

View File

@ -29,9 +29,9 @@
(define (set-interactive-print-handler port)
(port-print-handler
port
(λ (val port)
(do-printing pretty-print val port))))
port
(λ (val port)
(do-printing pretty-print val port))))
(define (use-number-snip? x)
(and #f