summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--scheme/plt/geiser/completions.ss10
1 files changed, 3 insertions, 7 deletions
diff --git a/scheme/plt/geiser/completions.ss b/scheme/plt/geiser/completions.ss
index 3cd62fd..013cdb1 100644
--- a/scheme/plt/geiser/completions.ss
+++ b/scheme/plt/geiser/completions.ss
@@ -28,7 +28,7 @@
(provide completions)
-(require srfi/13)
+(require srfi/13 geiser/utils)
(define (completions prefix . context)
(let ((context (and (not (null? context)) (car context)))
@@ -37,12 +37,6 @@
(sort (filter prefix? (map symbol->string (namespace-mapped-symbols)))
string<?))))
-(define (pair->list pair)
- (let loop ((d pair) (s '()))
- (cond ((null? d) (reverse s))
- ((symbol? d) (reverse (cons d s)))
- (else (loop (cdr d) (cons (car d) s))))))
-
(define (local-bindings form)
(define (body f) (if (> (length f) 2) (cddr f) '()))
(let loop ((form form) (bindings '()))
@@ -59,4 +53,6 @@
(loop (cons 'let (body form)) (cons (cadr form) bindings)))
(else (loop (cdr form) bindings)))))
+
+
;;; completions.ss ends here