summaryrefslogtreecommitdiff
path: root/elisp/geiser-completion.el
diff options
context:
space:
mode:
authorJose Antonio Ortega Ruiz <jao@gnu.org>2010-05-24 05:00:58 +0200
committerJose Antonio Ortega Ruiz <jao@gnu.org>2010-05-24 05:00:58 +0200
commit0e94dc1eb7b8a482ac4a460282e29041864669bd (patch)
treed9bf41798a71556df084681786887f68a365ad7c /elisp/geiser-completion.el
parent0498321758e52ad04eb2af062e1baa1e70fceda3 (diff)
downloadgeiser-0e94dc1eb7b8a482ac4a460282e29041864669bd.tar.gz
geiser-0e94dc1eb7b8a482ac4a460282e29041864669bd.tar.bz2
Elisp: misc little bugs (revealed by the byte compiler) fixed.
Diffstat (limited to 'elisp/geiser-completion.el')
-rw-r--r--elisp/geiser-completion.el7
1 files changed, 4 insertions, 3 deletions
diff --git a/elisp/geiser-completion.el b/elisp/geiser-completion.el
index 09c021f..b58b6be 100644
--- a/elisp/geiser-completion.el
+++ b/elisp/geiser-completion.el
@@ -101,9 +101,10 @@ terminates a current completion."
(get-buffer-window geiser-completion--comp-buffer)))))
(defun geiser-completion--display-or-scroll (completions base)
- (cond ((and (eq last-command this-command) (geiser-completion--window-active-p))
- (geiser-completion--scroll-completions))
- (t (geiser-completion--display-comp-list completions base)))
+ (if (and (eq last-command this-command)
+ (geiser-completion--window-active-p))
+ (geiser-completion--scroll-completions)
+ (geiser-completion--display-comp-list completions base))
(geiser-completion--delay-restoration))
(defun geiser-completion--scroll-completions ()