summaryrefslogtreecommitdiff
path: root/elisp/geiser-completion.el
diff options
context:
space:
mode:
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)