From f6f4ac04d88f3a85db02b2a54202e80ea0056991 Mon Sep 17 00:00:00 2001 From: Jose Antonio Ortega Ruiz Date: Fri, 14 Feb 2020 01:10:17 +0000 Subject: Refix #271, and consider gardening instead of programming --- elisp/geiser-completion.el | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) (limited to 'elisp') diff --git a/elisp/geiser-completion.el b/elisp/geiser-completion.el index 9c979f1..1279674 100644 --- a/elisp/geiser-completion.el +++ b/elisp/geiser-completion.el @@ -62,21 +62,14 @@ (geiser-eval--send/result `(:eval (:ge module-completions ,prefix)))) (defvar geiser-completion--module-list-func - (cond ((< emacs-major-version 25) - (completion-table-dynamic 'geiser-completion--symbol-list)) - ((= emacs-major-version 25) - (completion-table-dynamic 'geiser-completion--module-list t)) - (t (completion-table-dynamic 'geiser-completion--module-list)))) + (if (= emacs-major-version 25) + (completion-table-dynamic 'geiser-completion--module-list t) + (completion-table-dynamic 'geiser-completion--module-list))) (defvar geiser-completion-symbol-list-func (if (< emacs-major-version 25) (completion-table-dynamic 'geiser-completion--symbol-list t))) -(defvar geiser-completion-module-list-func - (if (< emacs-major-version 25) - (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) (geiser-completion--symbol-list prefix))) -- cgit v1.2.3