summaryrefslogtreecommitdiff
path: root/elisp/geiser-completion.el
diff options
context:
space:
mode:
authorJose Antonio Ortega Ruiz <jao@gnu.org>2018-01-29 03:21:13 +0100
committerJose Antonio Ortega Ruiz <jao@gnu.org>2018-01-29 03:21:13 +0100
commit2af5b24c97a271c243d8fddbc6b7bc97544c29da (patch)
tree6c746b5a891f2e06c2c84d316598394d1ce70d82 /elisp/geiser-completion.el
parent9a2bbfd255c1e64a632a900a02337a136536c1dd (diff)
downloadgeiser-2af5b24c97a271c243d8fddbc6b7bc97544c29da.tar.gz
geiser-2af5b24c97a271c243d8fddbc6b7bc97544c29da.tar.bz2
Fix for module/identifier completion in minibuffer
When constructing the completion table for minibuffer prompts via `completion-table-dynamic', we were forgetting to tell emacs to perform the completion lookup with the original (scheme) buffer as its current buffer. As a result, the actual completion function wasn't able to find the REPL connection and everything when down in flames with an exception.
Diffstat (limited to 'elisp/geiser-completion.el')
-rw-r--r--elisp/geiser-completion.el4
1 files changed, 2 insertions, 2 deletions
diff --git a/elisp/geiser-completion.el b/elisp/geiser-completion.el
index 6459bb1..b6dc2ad 100644
--- a/elisp/geiser-completion.el
+++ b/elisp/geiser-completion.el
@@ -62,10 +62,10 @@
(geiser-eval--send/result `(:eval (:ge module-completions ,prefix))))
(defvar geiser-completion--symbol-list-func
- (completion-table-dynamic 'geiser-completion--symbol-list))
+ (completion-table-dynamic 'geiser-completion--symbol-list t))
(defvar geiser-completion--module-list-func
- (completion-table-dynamic 'geiser-completion--module-list))
+ (completion-table-dynamic 'geiser-completion--module-list t))
(defun geiser-completion--complete (prefix modules)
(if modules (geiser-completion--module-list prefix)