summaryrefslogtreecommitdiff
path: root/elisp/geiser-completion.el
diff options
context:
space:
mode:
authorJose Antonio Ortega Ruiz <jao@gnu.org>2009-08-18 06:16:57 +0200
committerJose Antonio Ortega Ruiz <jao@gnu.org>2009-08-18 06:16:57 +0200
commit5a7373cd2da209e8a58b35060c0b29bd18398957 (patch)
tree93f54fbdd0c63dae576e8f71fc40c1453c9c2f59 /elisp/geiser-completion.el
parent203c989e07b43afb34f2c795cbda8126e9c0d327 (diff)
downloadgeiser-chez-5a7373cd2da209e8a58b35060c0b29bd18398957.tar.gz
geiser-chez-5a7373cd2da209e8a58b35060c0b29bd18398957.tar.bz2
Yet another deklugdification: locals scanning moved to elisp.
... and say goodbye to the ugly parse partial sexp, reducing not only sloppy code, but also duplication and data transfers.
Diffstat (limited to 'elisp/geiser-completion.el')
-rw-r--r--elisp/geiser-completion.el5
1 files changed, 2 insertions, 3 deletions
diff --git a/elisp/geiser-completion.el b/elisp/geiser-completion.el
index 799280e..28aef12 100644
--- a/elisp/geiser-completion.el
+++ b/elisp/geiser-completion.el
@@ -148,9 +148,8 @@ terminates a current completion."
(defsubst geiser-completion--symbol-list (prefix)
(delete-duplicates
- (geiser-eval--send/result
- `(:eval ((:ge completions) ,prefix
- (quote (:scm ,(or (geiser-syntax--get-partial-sexp) "()"))))))
+ (append (mapcar (lambda (s) (format "%s" s)) (geiser-syntax--locals-around-point))
+ (geiser-eval--send/result `(:eval ((:ge completions) ,prefix))))
:test 'string=))
(defsubst geiser-completion--module-list (prefix)