diff options
author | Jose Antonio Ortega Ruiz <jao@gnu.org> | 2010-10-06 00:53:07 +0200 |
---|---|---|
committer | Jose Antonio Ortega Ruiz <jao@gnu.org> | 2010-10-06 00:53:07 +0200 |
commit | 2ddf2d2b920a00e4dfcdb37f54c96f3c918e0e14 (patch) | |
tree | e4adf72fdfdd87c62341588e40179cba7ad9a21b /elisp/geiser-completion.el | |
parent | cdc33372c0e98f7159831cce44d12d5400798307 (diff) | |
download | geiser-2ddf2d2b920a00e4dfcdb37f54c96f3c918e0e14.tar.gz geiser-2ddf2d2b920a00e4dfcdb37f54c96f3c918e0e14.tar.bz2 |
Use cl only at compile time
Diffstat (limited to 'elisp/geiser-completion.el')
-rw-r--r-- | elisp/geiser-completion.el | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/elisp/geiser-completion.el b/elisp/geiser-completion.el index dea4a57..314e749 100644 --- a/elisp/geiser-completion.el +++ b/elisp/geiser-completion.el @@ -17,8 +17,6 @@ (require 'geiser-syntax) (require 'geiser-base) -(require 'cl) - ;;; Completions window handling, heavily inspired in slime's: @@ -72,7 +70,7 @@ terminates a current completion." (remove-hook 'pre-command-hook 'geiser-completion--maybe-restore-window-cfg) (condition-case err - (cond ((find last-command-event "()\"'`,# \r\n:") + (cond ((memq last-command-event '(?( ?) ?\" ?' ?` ?, ?# ? ?\r ?\n ?:)) (geiser-completion--restore-window-cfg)) ((not (geiser-completion--window-active-p)) (geiser-completion--forget-window-cfg)) @@ -153,10 +151,9 @@ terminates a current completion." geiser-completion--binding-forms*))) (defun geiser-completion--symbol-list (prefix) - (delete-duplicates + (geiser--del-dups (append (all-completions prefix (geiser-completion--locals)) - (geiser-eval--send/result `(:eval ((:ge completions) ,prefix)))) - :test 'string=)) + (geiser-eval--send/result `(:eval ((:ge completions) ,prefix)))))) (defsubst geiser-completion--module-list (prefix) (geiser-eval--send/result `(:eval ((:ge module-completions) ,prefix)))) |