changeset 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 55b68ac07b95
children e6e2bf709c6a
files lisp/ChangeLog lisp/complete.el
diffstat 2 files changed, 8 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/ChangeLog	Thu Sep 06 07:32:52 2007 +0000
+++ b/lisp/ChangeLog	Thu Sep 06 17:12:17 2007 +0000
@@ -1,3 +1,8 @@
+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.
+
 2007-09-06  Johan Bockg,Ae(Brd  <bojohan@dd.chalmers.se>
 
 	* help-fns.el (describe-variable): Keep doc's text properties.
--- 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