From 9a8b3a5cd45083e212979e75bedaaef31e5aa68b Mon Sep 17 00:00:00 2001 From: Romain Francoise Date: Thu, 6 Sep 2007 17:12:17 +0000 Subject: 2007-09-06 Sean O'Rourke * complete.el (PC-do-completion): Don't try to treat empty string as an abbreviation. --- lisp/complete.el | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'lisp/complete.el') diff --git a/lisp/complete.el b/lisp/complete.el index 01db126c5f8..bc581052508 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 -- cgit v1.2.1