summaryrefslogtreecommitdiff
path: root/elisp/geiser-completion.el
diff options
context:
space:
mode:
authorJose Antonio Ortega Ruiz <jao@gnu.org>2009-02-28 17:16:20 +0100
committerJose Antonio Ortega Ruiz <jao@gnu.org>2009-02-28 17:16:20 +0100
commit034b3070c61888a0e88edd33506c58fdae9b2115 (patch)
treed44f44462d4bde5ef322398972bf48e4dc0d05c4 /elisp/geiser-completion.el
parent77253da86ac2d005a0802426c7ebe08bf8dca9ce (diff)
downloadgeiser-chez-034b3070c61888a0e88edd33506c58fdae9b2115.tar.gz
geiser-chez-034b3070c61888a0e88edd33506c58fdae9b2115.tar.bz2
Refactoring: local bindings discovery moved to schemeland.
Diffstat (limited to 'elisp/geiser-completion.el')
-rw-r--r--elisp/geiser-completion.el8
1 files changed, 7 insertions, 1 deletions
diff --git a/elisp/geiser-completion.el b/elisp/geiser-completion.el
index 7b5d7d7..7e1f642 100644
--- a/elisp/geiser-completion.el
+++ b/elisp/geiser-completion.el
@@ -29,6 +29,8 @@
(require 'geiser-syntax)
(require 'geiser-base)
+(eval-when-compile (require 'cl))
+
;;; Completions window handling, heavily inspired in slime's:
@@ -145,7 +147,11 @@ terminates a current completion."
;;; Completion functionality:
(defsubst geiser-completion--symbol-list (prefix)
- (geiser-eval--send/result `(:eval ((:ge completions) ,prefix))))
+ (delete-duplicates
+ (geiser-eval--send/result
+ `(:eval ((:ge completions) ,prefix
+ (quote (:scm ,(geiser-syntax--get-partial-sexp))))))
+ :test 'string=))
(defsubst geiser-completion--module-list ()
(geiser-eval--send/result '(:eval ((:ge all-modules)))))