summaryrefslogtreecommitdiff
path: root/elisp/geiser-completion.el
diff options
context:
space:
mode:
authorJose Antonio Ortega Ruiz <jao@gnu.org>2020-05-10 17:28:00 +0100
committerJose Antonio Ortega Ruiz <jao@gnu.org>2020-05-10 17:28:00 +0100
commitc25a0562962c0f4dfbdc81b4662609f7df715b98 (patch)
treee6ad2ee40a894b362f9a475a3ce45cfab1d4bee0 /elisp/geiser-completion.el
parent19f7f244a1afce95aa54618801848bfb2f218198 (diff)
downloadgeiser-c25a0562962c0f4dfbdc81b4662609f7df715b98.tar.gz
geiser-c25a0562962c0f4dfbdc81b4662609f7df715b98.tar.bz2
Completion for vanilla users
Restoring what seem reasonable definitions for the completion functions when called away from the current buffer. Should fix issue
Diffstat (limited to 'elisp/geiser-completion.el')
-rw-r--r--elisp/geiser-completion.el12
1 files changed, 7 insertions, 5 deletions
diff --git a/elisp/geiser-completion.el b/elisp/geiser-completion.el
index 7583b5f..9a1eebf 100644
--- a/elisp/geiser-completion.el
+++ b/elisp/geiser-completion.el
@@ -63,16 +63,18 @@
(geiser-eval--send/result `(:eval (:ge module-completions ,prefix))))
(defvar geiser-completion-module-list-func
- (if (= emacs-major-version 25)
- (completion-table-dynamic 'geiser-completion--module-list t)
- (completion-table-dynamic 'geiser-completion--module-list)))
+ (if (< emacs-major-version 25)
+ (completion-table-dynamic 'geiser-completion--module-list)
+ (completion-table-dynamic 'geiser-completion--module-list t)))
(defvar geiser-completion-symbol-list-func
(if (< emacs-major-version 25)
- (completion-table-dynamic 'geiser-completion--symbol-list t)))
+ (completion-table-dynamic 'geiser-completion--symbol-list)
+ (completion-table-dynamic 'geiser-completion--symbol-list t)))
(defun geiser-completion--complete (prefix modules)
- (if modules (geiser-completion--module-list prefix)
+ (if modules
+ (geiser-completion--module-list prefix)
(geiser-completion--symbol-list prefix)))
(defvar geiser-completion--symbol-history nil)