* complete.el (PC-do-completion): Don't replace buffer contents

(bug#227).
This commit is contained in:
Chong Yidong 2008-09-07 20:56:27 +00:00
parent 9d43832560
commit 1aaaf8eaa8

View file

@ -456,14 +456,7 @@ GOTO-END is non-nil, however, it instead replaces up to END."
;; Check if buffer contents can already be considered complete
(if (and (eq mode 'exit)
(test-completion str table pred))
(progn
;; If completion-ignore-case is non-nil, insert the
;; completion string since that may have a different case.
(when completion-ignore-case
(setq str (PC-try-completion str table pred))
(delete-region beg end)
(insert str))
'complete)
'complete
;; Do substitutions in directory names
(and filename