aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Monnier2008-12-02 07:08:35 +0000
committerStefan Monnier2008-12-02 07:08:35 +0000
commitda0bed93994ac873055a26e73b1205819bddc84b (patch)
treec2f8ae04966656e50780cc5d3c1e818e0051500a
parentfa047ae7025373f512b0fca9eb3febdcd8ae8c00 (diff)
downloademacs-da0bed93994ac873055a26e73b1205819bddc84b.tar.gz
emacs-da0bed93994ac873055a26e73b1205819bddc84b.zip
(PC-do-completion): Fix leftover bug from Emacs-21 when
the prompt was added to the minibuffer.
-rw-r--r--lisp/ChangeLog5
-rw-r--r--lisp/complete.el3
2 files changed, 7 insertions, 1 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 2823fcf541f..a2fdb6f9fd8 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,8 @@
12008-12-02 Stefan Monnier <monnier@iro.umontreal.ca>
2
3 * complete.el (PC-do-completion): Fix leftover bug from Emacs-21 when
4 the prompt was added to the minibuffer.
5
12008-12-02 Glenn Morris <rgm@gnu.org> 62008-12-02 Glenn Morris <rgm@gnu.org>
2 7
3 * format.el (format-write-file): Rewrite doc yet again. 8 * format.el (format-write-file): Rewrite doc yet again.
diff --git a/lisp/complete.el b/lisp/complete.el
index b53addf2099..52b8fac577c 100644
--- a/lisp/complete.el
+++ b/lisp/complete.el
@@ -799,7 +799,8 @@ GOTO-END is non-nil, however, it instead replaces up to END."
799 (if improved 799 (if improved
800 800
801 ;; We changed it... would it be complete without the space? 801 ;; We changed it... would it be complete without the space?
802 (if (test-completion (buffer-substring 1 (1- end)) 802 (if (test-completion (buffer-substring
803 (field-beginning) (1- end))
803 table pred) 804 table pred)
804 (delete-region (1- end) end))) 805 (delete-region (1- end) end)))
805 806