GNU bug report logs - #27456
25.2; Not possible to use -prune with find-dired

Previous Next

Package: emacs;

Reported by: Allen Li <darkfeline <at> felesatra.moe>

Date: Fri, 23 Jun 2017 06:02:01 UTC

Severity: minor

Found in version 25.2

Done: Michael Heerdegen <michael_heerdegen <at> web.de>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: help-debbugs <at> gnu.org (GNU bug Tracking System)
To: Michael Heerdegen <michael_heerdegen <at> web.de>
Cc: tracker <at> debbugs.gnu.org
Subject: bug#27456: closed (25.2; Not possible to use -prune with find-dired)
Date: Sun, 09 Sep 2018 02:40:01 +0000
[Message part 1 (text/plain, inline)]
Your message dated Sun, 09 Sep 2018 04:39:05 +0200
with message-id <87lg8bz96e.fsf <at> web.de>
and subject line Re: bug#27456: 25.2; Not possible to use -prune with find-dired
has caused the debbugs.gnu.org bug report #27456,
regarding 25.2; Not possible to use -prune with find-dired
to be marked as done.

(If you believe you have received this mail in error, please contact
help-debbugs <at> gnu.org.)


-- 
27456: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=27456
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
From: Allen Li <darkfeline <at> felesatra.moe>
To: bug-gnu-emacs <at> gnu.org
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)


[Message part 3 (message/rfc822, inline)]
From: Michael Heerdegen <michael_heerdegen <at> web.de>
To: Allen Li <darkfeline <at> felesatra.moe>
Cc: 27456-done <at> debbugs.gnu.org
Subject: Re: bug#27456: 25.2; Not possible to use -prune with find-dired
Date: Sun, 09 Sep 2018 04:39:05 +0200
Allen Li <darkfeline <at> felesatra.moe> writes:

> I think we can close this.  The comma operator suggested by Andreas is
> the right solution.

Ok, fine - closing.


Michael.


This bug report was last modified 6 years and 260 days ago.

Previous Next


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