summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJose Antonio Ortega Ruiz <jao@gnu.org>2010-11-21 05:30:34 +0100
committerJose Antonio Ortega Ruiz <jao@gnu.org>2010-11-21 05:30:34 +0100
commit4d80d6fc32171c6356ec5081a194e8b136e9c87b (patch)
treee79c73348e3112e3ff873ba1bbc39cd0e721aa23
parent238deb7981f17953b2ae61d81720f1e99a6c73f2 (diff)
downloadgeiser-4d80d6fc32171c6356ec5081a194e8b136e9c87b.tar.gz
geiser-4d80d6fc32171c6356ec5081a194e8b136e9c87b.tar.bz2
Even better message on completion failure
-rw-r--r--elisp/geiser-completion.el8
1 files changed, 4 insertions, 4 deletions
diff --git a/elisp/geiser-completion.el b/elisp/geiser-completion.el
index 33593b6..caa529e 100644
--- a/elisp/geiser-completion.el
+++ b/elisp/geiser-completion.el
@@ -238,13 +238,13 @@ With prefix, complete module name."
(cond ((null completions)
(if (not arg)
(geiser-completion--complete-symbol t prefix)
- (geiser--respecting-message "Can't find completion for %S%s"
- prefix
+ (geiser--respecting-message "Can't find completion for %s"
(if (and previous
(not (equalp previous
prefix)))
- (format " or %S" previous)
- ""))
+ (format "%S or %S"
+ previous prefix)
+ prefix))
(geiser-completion--restore-window-cfg)))
(t (insert-and-inherit (substring partial (length prefix)))
(cond ((= (length completions) 1)