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.
This commit is contained in:
Romain Francoise 2007-09-06 17:12:17 +00:00
parent 8aee12d033
commit 9a8b3a5cd4
2 changed files with 8 additions and 2 deletions

View file

@ -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.

View file

@ -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