GNU bug report logs - #10262
24.0.91; find-dired ignores cdr of find-ls-option

Previous Next

Package: emacs;

Reported by: Philipp Haselwarter <philipp.haselwarter <at> gmx.de>

Date: Sat, 10 Dec 2011 16:33:01 UTC

Severity: normal

Found in version 24.0.91

Fixed in version 24.0.93

Done: Glenn Morris <rgm <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


Message #11 received at 10262 <at> debbugs.gnu.org (full text, mbox):

From: Philipp Haselwarter <philipp.haselwarter <at> gmx.de>
To: Glenn Morris <rgm <at> gnu.org>
Cc: 10262 <at> debbugs.gnu.org
Subject: Re: bug#10262: 24.0.91; find-dired ignores cdr of find-ls-option
Date: Thu, 12 Jan 2012 11:44:06 +0100
Glenn Morris <rgm <at> 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




This bug report was last modified 13 years and 191 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.