aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/complete.el
diff options
context:
space:
mode:
Diffstat (limited to 'lisp/complete.el')
-rw-r--r--lisp/complete.el5
1 files changed, 3 insertions, 2 deletions
diff --git a/lisp/complete.el b/lisp/complete.el
index 01db126c5f..bc58105250 100644
--- a/lisp/complete.el
+++ b/lisp/complete.el
@@ -596,9 +596,10 @@ GOTO-END is non-nil, however, it instead replaces up to END."
(setq poss (all-completions (if env-on basestr str)
table
pred))
- (unless poss
+ (unless (or poss (string-equal str ""))
;; Try completion as an abbreviation, e.g. "mvb" ->
- ;; "m-v-b" -> "multiple-value-bind"
+ ;; "m-v-b" -> "multiple-value-bind", but only for
+ ;; non-empty strings.
(setq origstr str
abbreviated t)
(if filename