Revert r10469.
svn: r10480
This commit is contained in:
parent
8d6f390e83
commit
1e1cb4d843
|
@ -23,7 +23,7 @@
|
|||
"read: bad syntax: empty scheme box")
|
||||
txt line col pos 1)))
|
||||
(let ([stx (read-syntax
|
||||
text
|
||||
(get-source-name text)
|
||||
(open-input-text-editor text 0 (send text last-position)))])
|
||||
(when (eof-object? stx)
|
||||
(raise-read-error
|
||||
|
@ -33,6 +33,12 @@
|
|||
text 1 1 1 (send text last-position)))
|
||||
stx)))
|
||||
|
||||
(define (get-source-name text)
|
||||
(cond
|
||||
[(method-in-interface? 'get-port-name (object-interface text))
|
||||
(send text get-port-name)]
|
||||
[else
|
||||
(send text get-filename)]))
|
||||
|
||||
(define (xml-read-special eliminate-whitespace-in-empty-tags? snip file line col pos)
|
||||
(let ([editor (send snip get-editor)]
|
||||
|
|
Loading…
Reference in New Issue
Block a user