changeset 98091:cf3a44c40410

* complete.el (PC-do-completion): Don't replace buffer contents (bug#227).
author Chong Yidong <cyd@stupidchicken.com>
date Sun, 07 Sep 2008 20:56:27 +0000
parents d8b291454853
children f0744b3d056a
files lisp/complete.el
diffstat 1 files changed, 1 insertions(+), 8 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/complete.el	Sun Sep 07 20:41:10 2008 +0000
+++ b/lisp/complete.el	Sun Sep 07 20:56:27 2008 +0000
@@ -456,14 +456,7 @@
     ;; 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