Added workaround to allow find-dired worked in Windows when interacrive shell
authorOleksandr Gavenko <gavenkoa@gmail.com>
Wed, 23 Dec 2009 13:04:05 +0200
changeset 237 39054eb39d27
parent 236 848b9cd2e47c
child 238 9bbf7d3d45b3
Added workaround to allow find-dired worked in Windows when interacrive shell set to bash..
.emacs-my
--- a/.emacs-my	Fri Dec 11 10:48:26 2009 +0200
+++ b/.emacs-my	Wed Dec 23 13:04:05 2009 +0200
@@ -553,6 +553,11 @@
   (setq explicit-shell-file-name "bash")
   (setq explicit-bash-args '("-i"))
   (setq explicit-sh-args '("-i"))
+  ;; Here is workaround: when explicit-shell-file-name is "bash" and shell-file-name is "cmdproxy.exe"
+  ;; find-dired incorrect quote args (in shell-quote-argument (w32-shell-name) return "bash", but
+  ;; shell-command used shell-file-name which value "cmdproxy.exe"). So I put additional space in pattern to
+  ;; prevent quoting.
+  (setq find-ls-option '("-exec ls -ld {}  ;" . "-ld"))
   )
 
 ;; ======================================================================