changeset 98356:26e60becb11f

(comint-dynamic-complete-as-filename): Quote directory name when reinserting it.
author Chong Yidong <cyd@stupidchicken.com>
date Thu, 25 Sep 2008 19:26:03 +0000
parents 260673b5a172
children d4a0e165886a
files lisp/comint.el
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/comint.el	Thu Sep 25 19:25:44 2008 +0000
+++ b/lisp/comint.el	Thu Sep 25 19:26:03 2008 +0000
@@ -2848,7 +2848,7 @@
 	     ;; may have a different case than what's in the prompt,
 	     ;; if read-file-name-completion-ignore-case is non-nil,
 	     (delete-region filename-beg filename-end)
-	     (if filedir (insert filedir))
+	     (if filedir (insert (comint-quote-filename filedir)))
 	     (insert (comint-quote-filename (directory-file-name completion)))
 	     (cond ((symbolp (file-name-completion completion directory))
 		    ;; We inserted a unique completion.