diff lisp/complete.el @ 84347:36f09a4f9133

2007-09-06 Sean O'Rourke <sorourke@cs.ucsd.edu> * complete.el (PC-do-completion): Don't try to treat empty string as an abbreviation.
author Romain Francoise <romain@orebokech.com>
date Thu, 06 Sep 2007 17:12:17 +0000
parents f839eef40802
children 3688c29b5541 14c4a6aac623
line wrap: on
line diff
--- a/lisp/complete.el	Thu Sep 06 07:32:52 2007 +0000
+++ b/lisp/complete.el	Thu Sep 06 17:12:17 2007 +0000
@@ -596,9 +596,10 @@
           (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