fixed auto completion in the REPL and improved the tools manual a little

svn: r7855

original commit: 600089413bfea3b68b98d68975ab53347b169e1f
This commit is contained in:
Robby Findler 2007-11-29 00:22:05 +00:00
parent fa7ad5be3c
commit f3a29e12b0
3 changed files with 23 additions and 7 deletions

View File

@ -0,0 +1,9 @@
#lang scribble/doc
@begin[
(require scribble/manual)
]
@title{PLT Framework: GUI Application Framework}
Nothing yet.

View File

@ -37,6 +37,7 @@
thaw-colorer thaw-colorer
reset-region reset-region
get-region
update-region-end update-region-end
skip-whitespace skip-whitespace

View File

@ -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-values ([(region-start region-end) (get-region)])
(let loop ([i start]) (let loop ([i start])
(cond (cond
[(< i 0) 0] [(and (number? region-start)
(< i region-start))
region-start]
[(< i 0)
0]
[(eq? (classify-position i) 'symbol) [(eq? (classify-position i) 'symbol)
(loop (- i 1))] (loop (- i 1))]
[else (+ 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