unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Philipp Haselwarter <philipp.haselwarter@gmx.de>
To: Glenn Morris <rgm@gnu.org>
Cc: 10262@debbugs.gnu.org
Subject: bug#10262: 24.0.91; find-dired ignores cdr of find-ls-option
Date: Thu, 12 Jan 2012 11:44:06 +0100	[thread overview]
Message-ID: <87y5tdqjyh.fsf@nzebook.haselwarter.org> (raw)
In-Reply-To: <ufobu92twj.fsf@fencepost.gnu.org> (Glenn Morris's message of "Thu, 12 Jan 2012 03:43:08 -0500")

Glenn Morris <rgm@gnu.org> writes:

> 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"))

Thanks, I had a misconception about how much of the parsing was done by
dired, your solution works perfectly! Adding it as an example to the
docstring of `find-ls-option' would certainly clarify things.

-- 
Philipp Haselwarter





  reply	other threads:[~2012-01-12 10:44 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
2012-01-12 10:44   ` Philipp Haselwarter [this message]
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

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87y5tdqjyh.fsf@nzebook.haselwarter.org \
    --to=philipp.haselwarter@gmx.de \
    --cc=10262@debbugs.gnu.org \
    --cc=rgm@gnu.org \
    /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 public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).