bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#10262: 24.0.91; find-dired ignores cdr of find-ls-option


From: Glenn Morris
Subject: bug#10262: 24.0.91; find-dired ignores cdr of find-ls-option
Date: Thu, 12 Jan 2012 03:43:08 -0500
User-agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/)

Philipp Haselwarter wrote:

> Setting the cdr of `find-ls-option' does change the output of
> `find-dired'. The problem seems to be with `dired-mode'
> (cf. find-emacs.gz line 176).
>
> To reproduce:
>
> (progn
>   (setq find-ls-option '("-ls" . "-dlbh"))
>   (find-file "/tmp")
>   (call-interactively 'find-dired))
>
> confirm twice:
>
> "RET" "RET"


I think this is a misunderstanding. You can't just change the cdr of
find-ls-option, you have to change the car as well. find will produce
the file listing using the option specified in the car, then Emacs
switches to dired-mode, with the cdr telling it how to parse the output
of find.

So you probably want to use:

(setq find-ls-option '("-exec ls -dlbh {} +" . "-dlbh"))





reply via email to

[Prev in Thread] Current Thread [Next in Thread]