--- Begin Message ---
Subject: |
25.2; Not possible to use -prune with find-dired |
Date: |
Thu, 22 Jun 2017 23:00:48 -0700 |
It is not possible to effectively use the -prune action with find-dired.
With plain find, -prune would be used like:
find . -name "foo*" -prune -o -name "*.el" -ls
However, find-dired wraps everything:
(find-dired "." "-name \\"foo*\\" -prune -o -name \\"*.el\\" -ls")
results in the equivalent call:
find . \( -name "foo*" -prune -o -name "*.el" -ls \) -ls
Notably, this will list files matching foo*
Unfortunately, I'm not sure if there are any easy remedies. Perhaps
find-dired should refrain from appending -ls if ARGS already contains
-ls.
In GNU Emacs 25.2.1 (x86_64-unknown-linux-gnu, GTK+ Version 3.22.10)
--- End Message ---
--- Begin Message ---
Subject: |
Re: bug#27456: 25.2; Not possible to use -prune with find-dired |
Date: |
Sun, 09 Sep 2018 04:39:05 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) |
Allen Li <address@hidden> writes:
> I think we can close this. The comma operator suggested by Andreas is
> the right solution.
Ok, fine - closing.
Michael.
--- End Message ---