fixed auto completion in the REPL and improved the tools manual a little
svn: r7855 original commit: 600089413bfea3b68b98d68975ab53347b169e1f
This commit is contained in:
parent
fa7ad5be3c
commit
f3a29e12b0
9
collects/framework/framework.scrbl
Normal file
9
collects/framework/framework.scrbl
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
#lang scribble/doc
|
||||||
|
|
||||||
|
@begin[
|
||||||
|
(require scribble/manual)
|
||||||
|
]
|
||||||
|
|
||||||
|
@title{PLT Framework: GUI Application Framework}
|
||||||
|
|
||||||
|
Nothing yet.
|
|
@ -37,6 +37,7 @@
|
||||||
thaw-colorer
|
thaw-colorer
|
||||||
|
|
||||||
reset-region
|
reset-region
|
||||||
|
get-region
|
||||||
update-region-end
|
update-region-end
|
||||||
|
|
||||||
skip-whitespace
|
skip-whitespace
|
||||||
|
|
|
@ -431,7 +431,7 @@
|
||||||
|
|
||||||
(inherit get-styles-fixed)
|
(inherit get-styles-fixed)
|
||||||
(inherit has-focus? find-snip split-snip
|
(inherit has-focus? find-snip split-snip
|
||||||
position-location get-dc)
|
position-location get-dc get-region)
|
||||||
|
|
||||||
(define/override (get-word-at current-pos)
|
(define/override (get-word-at current-pos)
|
||||||
(let ([no-word ""])
|
(let ([no-word ""])
|
||||||
|
@ -447,12 +447,18 @@
|
||||||
[else no-word]))])))
|
[else no-word]))])))
|
||||||
|
|
||||||
(define/private (look-for-non-symbol start)
|
(define/private (look-for-non-symbol start)
|
||||||
(let loop ([i start])
|
(let-values ([(region-start region-end) (get-region)])
|
||||||
(cond
|
(let loop ([i start])
|
||||||
[(< i 0) 0]
|
(cond
|
||||||
[(eq? (classify-position i) 'symbol)
|
[(and (number? region-start)
|
||||||
(loop (- i 1))]
|
(< i region-start))
|
||||||
[else (+ i 1)])))
|
region-start]
|
||||||
|
[(< i 0)
|
||||||
|
0]
|
||||||
|
[(eq? (classify-position i) 'symbol)
|
||||||
|
(loop (- i 1))]
|
||||||
|
[else
|
||||||
|
(+ i 1)]))))
|
||||||
|
|
||||||
(public tabify-on-return? tabify
|
(public tabify-on-return? tabify
|
||||||
tabify-all insert-return calc-last-para
|
tabify-all insert-return calc-last-para
|
||||||
|
|
Loading…
Reference in New Issue
Block a user