fix inverted argument default for editor<%> read-from-file method; better Check Sytax results on packages; added syntax/flatten-begin library
svn: r14548 original commit: 4b3626c1560658fe3937019e001911c2a44aaff3
This commit is contained in:
parent
4b68d460bb
commit
e479b00575
|
@ -1913,7 +1913,7 @@
|
|||
(do-write-headers-footers f #f)))
|
||||
|
||||
(def/override (read-from-file [editor-stream-in% f]
|
||||
[bool? [overwritestyle? #t]])
|
||||
[bool? [overwritestyle? #f]])
|
||||
(if (or s-user-locked?
|
||||
(not (zero? write-locked)))
|
||||
#f
|
||||
|
|
|
@ -2581,9 +2581,9 @@
|
|||
(define/override (read-from-file . args)
|
||||
(case-args
|
||||
args
|
||||
[([editor-stream-in% f] [exact-nonnegative-integer? start] [any? [overwritestyle? #t]])
|
||||
[([editor-stream-in% f] [exact-nonnegative-integer? start] [any? [overwritestyle? #f]])
|
||||
(do-read-from-file f start overwritestyle?)]
|
||||
[([editor-stream-in% f] [any? [overwritestyle? #t]])
|
||||
[([editor-stream-in% f] [any? [overwritestyle? #f]])
|
||||
(do-read-from-file f 'start overwritestyle?)]
|
||||
(method-name 'text% 'read-from-file)))
|
||||
|
||||
|
|
|
@ -1826,7 +1826,7 @@ See @method[editor<%> read-header-from-file].
|
|||
|
||||
|
||||
@defmethod[(read-from-file [stream (is-a?/c editor-stream-in%)]
|
||||
[overwrite-styles? any/c #t])
|
||||
[overwrite-styles? any/c #f])
|
||||
boolean?]{
|
||||
|
||||
Reads new contents for the editor from a stream. The return value is
|
||||
|
|
|
@ -1698,7 +1698,7 @@ Returns the paragraph number of the paragraph containing a given @techlink{posit
|
|||
@defmethod[#:mode extend
|
||||
(read-from-file [stream (is-a?/c editor-stream-in%)]
|
||||
[start (or/c exact-nonnegative-integer? (one/of 'start))]
|
||||
[overwrite-styles? any/c #t])
|
||||
[overwrite-styles? any/c #f])
|
||||
boolean?]{
|
||||
|
||||
New data is inserted at the @techlink{position} indicated by @scheme[start], or at
|
||||
|
|
Loading…
Reference in New Issue
Block a user