clarify the use-file-text-mode method.
original commit: b52086ecae15a1e159f01969b2e651e3234f514d
This commit is contained in:
parent
eb943f394e
commit
089022da68
|
@ -2395,13 +2395,19 @@ See also @method[editor<%> add-undo] .
|
||||||
@defmethod*[([(use-file-text-mode) boolean?]
|
@defmethod*[([(use-file-text-mode) boolean?]
|
||||||
[(use-file-text-mode [on? any/c]) void?])]{
|
[(use-file-text-mode [on? any/c]) void?])]{
|
||||||
|
|
||||||
Gets or sets whether the current platform's text mode is used for
|
Gets or sets a boolean that controls if files are saved in
|
||||||
writing files in @racket['text] or @racket['text-force-cr] mode, which
|
@racket['text] or @racket['binary] mode (as in @racket[open-input-file]'s
|
||||||
affects the way that newlines are written. The setting is consulted by
|
@racket[#:mode] argument). This flag is consulted only when the
|
||||||
@method[editor<%> save-file] after @method[editor<%> on-save-file] is
|
format is @racket['text] or @racket['text-force-cr].
|
||||||
called. See also @method[editor<%> load-file] for information on file
|
See @method[editor<%> load-file] for information on
|
||||||
modes.
|
formats.
|
||||||
|
|
||||||
|
The setting is consulted by
|
||||||
|
@method[editor<%> save-file] after @method[editor<%> on-save-file] is
|
||||||
|
called.
|
||||||
|
|
||||||
|
Overriding this method is a reliable way to detect changes to the internal
|
||||||
|
boolean.
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user