summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJose Antonio Ortega Ruiz <jao@gnu.org>2010-11-06 23:18:51 +0100
committerJose Antonio Ortega Ruiz <jao@gnu.org>2010-11-06 23:18:51 +0100
commit0663d1ba075b1efda73de80b8b0d1e3b05f99868 (patch)
treecdf3543b2954b3c915ecbc9131bffc34145ecced
parentf1684f872705bdbb8566f83529cb7707f89cc10b (diff)
downloadgeiser-0663d1ba075b1efda73de80b8b0d1e3b05f99868.tar.gz
geiser-0663d1ba075b1efda73de80b8b0d1e3b05f99868.tar.bz2
Completion: falling back to module name completion for real
-rw-r--r--elisp/geiser-completion.el7
1 files changed, 5 insertions, 2 deletions
diff --git a/elisp/geiser-completion.el b/elisp/geiser-completion.el
index d346190..46413cf 100644
--- a/elisp/geiser-completion.el
+++ b/elisp/geiser-completion.el
@@ -234,8 +234,11 @@ With prefix, complete module name."
(completions (car result))
(partial (cdr result)))
(cond ((null completions)
- (geiser--respecting-message "Can't find completion for %S" prefix)
- (geiser-completion--restore-window-cfg))
+ (if (not arg)
+ (geiser-completion--complete-symbol t)
+ (geiser--respecting-message "Can't find completion for %S"
+ prefix)
+ (geiser-completion--restore-window-cfg)))
(t (insert-and-inherit (substring partial (length prefix)))
(cond ((= (length completions) 1)
(geiser--respecting-message "Sole completion")