framework: add missing methods to interface and docs

The set-replace-start and get-replace-search-hit methods were
missing in the text:searchable<%> interface. The latter was
also undocumented.
This commit is contained in:
Asumu Takikawa 2012-02-25 12:00:01 -05:00
parent 14f03bcf5b
commit 04f7bdbb02
2 changed files with 8 additions and 1 deletions

View File

@ -861,6 +861,8 @@
(define searching<%>
(interface (editor:keymap<%> basic<%>)
set-replace-start
get-replace-search-hit
set-searching-state
set-search-anchor
get-search-bubbles

View File

@ -360,7 +360,12 @@
found last time that a search happened.
}
@defmethod[(set-replace-start [pos (or/c false/c number?)]) void?]{
@defmethod[(get-replace-search-hit) (or/c number? #f)]{
Returns the position of the nearest search hit that comes after the
position set by the @method[text:searching<%> set-replace-start] method.
}
@defmethod[(set-replace-start [pos (or/c number? #f)]) void?]{
Sets the position where replacement next occurs. This is equivalent to
calling @method[text:searching<%> set-searching-state] with a new
@racket[replace-start] argument, but the other arguments the same as the