From: Chong Yidong Date: Thu, 25 Sep 2008 19:26:03 +0000 (+0000) Subject: (comint-dynamic-complete-as-filename): Quote directory name when X-Git-Tag: emacs-pretest-23.0.90~2755 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=96342238b68ba92206b6f68e8614151e54a67635;p=emacs.git (comint-dynamic-complete-as-filename): Quote directory name when reinserting it. --- diff --git a/lisp/comint.el b/lisp/comint.el index 6231a20b65a..c639053c1ca 100644 --- a/lisp/comint.el +++ b/lisp/comint.el @@ -2848,7 +2848,7 @@ See `comint-dynamic-complete-filename'. Returns t if successful." ;; 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.