From 1aaaf8eaa840510439e1c561390479cb45e9b23a Mon Sep 17 00:00:00 2001 From: Chong Yidong Date: Sun, 7 Sep 2008 20:56:27 +0000 Subject: [PATCH] * complete.el (PC-do-completion): Don't replace buffer contents (bug#227). --- lisp/complete.el | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/lisp/complete.el b/lisp/complete.el index 95e116f7536..6626b7b959e 100644 --- a/lisp/complete.el +++ b/lisp/complete.el @@ -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 -- 2.39.5