diff options
author | Jose Antonio Ortega Ruiz <jao@gnu.org> | 2018-01-29 03:21:13 +0100 |
---|---|---|
committer | Jose Antonio Ortega Ruiz <jao@gnu.org> | 2018-01-29 03:21:13 +0100 |
commit | 33783307abab46433ce18273f562b3a729628e8e (patch) | |
tree | 28fcb0aa985eafbc834cfcb313f65192ead1a0b4 | |
parent | 3255eac184613601aa11b59fd3afd2d5ba13d12e (diff) | |
download | geiser-guile-33783307abab46433ce18273f562b3a729628e8e.tar.gz geiser-guile-33783307abab46433ce18273f562b3a729628e8e.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.
-rw-r--r-- | elisp/geiser-completion.el | 4 |
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) |