From: Glenn Morris <rgm@gnu.org>
To: Philipp Haselwarter <philipp.haselwarter@gmx.de>
Cc: 10262@debbugs.gnu.org
Subject: bug#10262: 24.0.91; find-dired ignores cdr of find-ls-option
Date: Thu, 12 Jan 2012 03:43:08 -0500 [thread overview]
Message-ID: <ufobu92twj.fsf@fencepost.gnu.org> (raw)
In-Reply-To: <87pqfwtmr9.fsf@nzebook.haselwarter.org> (Philipp Haselwarter's message of "Sat, 10 Dec 2011 17:27:54 +0100")
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"))
next prev parent reply other threads:[~2012-01-12 8:43 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-12-10 16:27 bug#10262: 24.0.91; find-dired ignores cdr of find-ls-option Philipp Haselwarter
2012-01-12 8:43 ` Glenn Morris [this message]
2012-01-12 10:44 ` Philipp Haselwarter
2012-01-13 2:34 ` Glenn Morris
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=ufobu92twj.fsf@fencepost.gnu.org \
--to=rgm@gnu.org \
--cc=10262@debbugs.gnu.org \
--cc=philipp.haselwarter@gmx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.