Authors: | Slava Pestov |
Class | Superclass | Slots |
document | model | locs undos redos inside-undo? |
edit | tuple | old-string new-string from old-to new-to |
Word | Stack effect |
+col | ( loc n -- newloc ) |
+line | ( loc n -- newloc ) |
<document> | ( -- document ) |
<edit> | ( old-string new-string from old-to new-to -- edit ) |
=col | ( n loc -- newloc ) |
=line | ( n loc -- newloc ) |
add-loc | ( loc document -- ) |
add-undo | ( edit document -- ) |
change-doc-range | ( from to document quot -- ) |
clear-doc | ( document -- ) |
clear-undo | ( document -- ) |
doc-end | ( document -- loc ) |
doc-line | ( n document -- string ) |
doc-lines | ( from to document -- slice ) |
doc-range | ( from to document -- string ) |
doc-start | ( -- value ) |
doc-string | ( document -- str ) |
each-doc-line | ( ... from to quot: ( ... line -- ... ) -- ... ) |
end-on-line | ( to line# document -- n2 ) |
last-line# | ( document -- line ) |
line-end | ( line# document -- loc ) |
line-end? | ( loc document -- ? ) |
lines-equal? | ( loc1 loc2 -- ? ) |
map-doc-lines | ( ... from to quot: ( ... line -- ... result ) -- ... results ) |
redo | ( document -- ) |
remove-doc-range | ( from to document -- ) |
remove-loc | ( loc document -- ) |
set-doc-range | ( string from to document -- ) |
set-doc-range* | ( string from to document -- ) |
set-doc-string | ( string document -- ) |
start-on-line | ( from line# document -- n1 ) |
start/end-on-line | ( from to line# document -- n1 n2 ) |
undo | ( document -- ) |
update-locs | ( loc document -- ) |
validate-col | ( col line document -- col ) |
validate-line | ( line document -- line ) |
validate-loc | ( loc document -- newloc ) |
Word | Stack effect |
document? | ( object -- ? ) |
edit? | ( object -- ? ) |
Vocabulary | Summary |
documents.elements |