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
|
||||
|
||||
reset-region
|
||||
get-region
|
||||
update-region-end
|
||||
|
||||
skip-whitespace
|
||||
|
|
|
@ -431,7 +431,7 @@
|
|||
|
||||
(inherit get-styles-fixed)
|
||||
(inherit has-focus? find-snip split-snip
|
||||
position-location get-dc)
|
||||
position-location get-dc get-region)
|
||||
|
||||
(define/override (get-word-at current-pos)
|
||||
(let ([no-word ""])
|
||||
|
@ -447,12 +447,18 @@
|
|||
[else no-word]))])))
|
||||
|
||||
(define/private (look-for-non-symbol start)
|
||||
(let-values ([(region-start region-end) (get-region)])
|
||||
(let loop ([i start])
|
||||
(cond
|
||||
[(< i 0) 0]
|
||||
[(and (number? region-start)
|
||||
(< i region-start))
|
||||
region-start]
|
||||
[(< i 0)
|
||||
0]
|
||||
[(eq? (classify-position i) 'symbol)
|
||||
(loop (- i 1))]
|
||||
[else (+ i 1)])))
|
||||
[else
|
||||
(+ i 1)]))))
|
||||
|
||||
(public tabify-on-return? tabify
|
||||
tabify-all insert-return calc-last-para
|
||||
|
|
Loading…
Reference in New Issue
Block a user