Subject: bug#10469: 24.0.92; find-name-dired quotes characters in output

From: Michael Heerdegen <[email-masked]>
Date: Tue, 10 Jan 2012 05:21:35 +0100

Hello again,

Yes, this is resulting from #10262.

After browsing the sources, `find-dired' seems indeed to fail to handle
(cdr find-ls-option).

The find program call is built like that in `find-dired':

  (concat find-program " . "
          (if (string= args "")
   	   ""
   	 (concat
   	  (shell-quote-argument "(")
   	  " " args " "
   	  (shell-quote-argument ")")
   	  " "))
          (if (string-match "\\`\\(.*\\) {} \\(\\\\;\\|+\\)\\'"
   			 (car find-ls-option))
   	   (format "%s %s %s"
   		   (match-string 1 (car find-ls-option))
   		   (shell-quote-argument "{}")
   		   find-exec-terminator)
   	 (car find-ls-option)))

which doesn't handle (cdr find-ls-option).

Also `find-dired-filter' doesn't handle (cdr find-ls-option) completely.

On the other hand `find-dired' has this call:

  (dired-mode dir (cdr find-ls-option))

but since the buffer content comes from find, giving
(cdr find-ls-option) as an argument has no effect here.

- Michael.