diff options
author | Jose Antonio Ortega Ruiz <jao@gnu.org> | 2009-02-28 17:16:20 +0100 |
---|---|---|
committer | Jose Antonio Ortega Ruiz <jao@gnu.org> | 2009-02-28 17:16:20 +0100 |
commit | 8563be5f22eda87cf676ad62a252295aa40f0b64 (patch) | |
tree | 669044f03a16f9be4a81bd41cafbd59bb1322293 /elisp/geiser-completion.el | |
parent | 0e5a50991969364df18c8982b2066e4eb08d0d04 (diff) | |
download | geiser-8563be5f22eda87cf676ad62a252295aa40f0b64.tar.gz geiser-8563be5f22eda87cf676ad62a252295aa40f0b64.tar.bz2 |
Refactoring: local bindings discovery moved to schemeland.
Diffstat (limited to 'elisp/geiser-completion.el')
-rw-r--r-- | elisp/geiser-completion.el | 8 |
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))))) |