Mercurial > emacs
changeset 100116:f2e50678d85a
(PC-do-completion): Fix leftover bug from Emacs-21 when
the prompt was added to the minibuffer.
author | Stefan Monnier <monnier@iro.umontreal.ca> |
---|---|
date | Tue, 02 Dec 2008 07:08:35 +0000 |
parents | 3a36c6c70cad |
children | 104c4461a4f5 |
files | lisp/ChangeLog lisp/complete.el |
diffstat | 2 files changed, 7 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/lisp/ChangeLog Tue Dec 02 03:40:15 2008 +0000 +++ b/lisp/ChangeLog Tue Dec 02 07:08:35 2008 +0000 @@ -1,3 +1,8 @@ +2008-12-02 Stefan Monnier <monnier@iro.umontreal.ca> + + * complete.el (PC-do-completion): Fix leftover bug from Emacs-21 when + the prompt was added to the minibuffer. + 2008-12-02 Glenn Morris <rgm@gnu.org> * format.el (format-write-file): Rewrite doc yet again.
--- a/lisp/complete.el Tue Dec 02 03:40:15 2008 +0000 +++ b/lisp/complete.el Tue Dec 02 07:08:35 2008 +0000 @@ -799,7 +799,8 @@ (if improved ;; We changed it... would it be complete without the space? - (if (test-completion (buffer-substring 1 (1- end)) + (if (test-completion (buffer-substring + (field-beginning) (1- end)) table pred) (delete-region (1- end) end)))