From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Michael Heerdegen Newsgroups: gmane.emacs.bugs Subject: bug#27456: 25.2; Not possible to use -prune with find-dired Date: Wed, 12 Jul 2017 21:40:24 +0200 Message-ID: <874luhxx3r.fsf@drachen> References: <87k243qm3z.fsf@felesatra.moe> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1499888480 27862 195.159.176.226 (12 Jul 2017 19:41:20 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 12 Jul 2017 19:41:20 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux) Cc: 27456@debbugs.gnu.org To: Allen Li Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Jul 12 21:41:13 2017 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dVNVU-0006bH-Ce for geb-bug-gnu-emacs@m.gmane.org; Wed, 12 Jul 2017 21:41:08 +0200 Original-Received: from localhost ([::1]:55461 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dVNVZ-0002qt-S0 for geb-bug-gnu-emacs@m.gmane.org; Wed, 12 Jul 2017 15:41:13 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:40318) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dVNVR-0002qc-RM for bug-gnu-emacs@gnu.org; Wed, 12 Jul 2017 15:41:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dVNVO-0004yu-Nc for bug-gnu-emacs@gnu.org; Wed, 12 Jul 2017 15:41:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:33107) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dVNVO-0004yj-KI for bug-gnu-emacs@gnu.org; Wed, 12 Jul 2017 15:41:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1dVNVN-0004gQ-Lj for bug-gnu-emacs@gnu.org; Wed, 12 Jul 2017 15:41:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Michael Heerdegen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 12 Jul 2017 19:41:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 27456 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 27456-submit@debbugs.gnu.org id=B27456.149988843917966 (code B ref 27456); Wed, 12 Jul 2017 19:41:01 +0000 Original-Received: (at 27456) by debbugs.gnu.org; 12 Jul 2017 19:40:39 +0000 Original-Received: from localhost ([127.0.0.1]:35784 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dVNV1-0004fi-JR for submit@debbugs.gnu.org; Wed, 12 Jul 2017 15:40:39 -0400 Original-Received: from mout.web.de ([212.227.15.4]:57366) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dVNUz-0004fT-J1 for 27456@debbugs.gnu.org; Wed, 12 Jul 2017 15:40:38 -0400 Original-Received: from drachen.dragon ([88.73.234.235]) by smtp.web.de (mrweb004 [213.165.67.108]) with ESMTPSA (Nemesis) id 0MZAp2-1dEo3528c8-00KvPS; Wed, 12 Jul 2017 21:40:27 +0200 In-Reply-To: <87k243qm3z.fsf@felesatra.moe> (Allen Li's message of "Thu, 22 Jun 2017 23:00:48 -0700") X-Provags-ID: V03:K0:uUkGiHm5QapULw6M/3qK6DxOO06I2E2FXQldg1J06KhKc297BlV 1dka8CpivATQ705h+4tQjYRaU/+XHM0pNr6Ma41r1MLy1exxY/LmxL7Fbt9tpKfvRPY9xxl rWGKKGkSxSZVQb3FDlEZlZ7ngIGFa30clLUEVF/w/TpAfj9kEnz/g6rIn7oMc0gj3ABJcF9 aYdAZkQhQIVexqKkeSizg== X-UI-Out-Filterresults: notjunk:1;V01:K0:lqoMGSLK8DU=:OvmC7UxPmAVBfcfgehJsZj 2xKwYfpLkyEMWDkG2580uW9njfxlqJVYFR/9HxU2iGk38yKQEh/h/STdsRRWY+REVBbfxwvyQ tZNOKCEhGhTWi/vqpnzFK0b0tljyfh2hI1iAcTt3JlkTHmyYflGi9CY/rlCXZ8duEL/w1vf5+ YzjxSmjmvWYnaMdRSRakjGmkrtY/j80Gh7ajYq7zDoJzzImYwUHzwcv2CduvQad7EE2EfrNfo 9j+NGvrE5AmIjLZWQvONn47b5wqUSGCcxBMXMK66Y8AvWVSNeMmVuwiElU1gPpRsxAIs4Ra45 wuA4YYSZhwC9QE7uoGdV1h+2CqnW7PaNvx4WiyB3bjQWXooq//CG40wcHpWgbs/SAnktR3MqF AFtOP4a/dCmHPrcpBGxty936pnzV+6owcLpw9LvSbpPHEmQd5Pp868VLaylGLxj5JgcvtcPoU FAXlbIpvKAKAYTVl+YKyBHI91mo5/z+D5gV+IU/TtSloyle4Ts0cnNAmWXlcN4bvvI/9NHy3s E+ze4KtOQuyS0gMTrKmlcrTMzdTnOf1cqBrj7Dh13sCQiatTSPIZT/8b61aP2jIBCKbr8lG1y 8QePlH8bfCxqwJRaZ6b3N2TMIQUBsAtOvSMoI4SaOcqLLOmxHErY3tUj6ye5bsSKRnlNn209M eQ0VJBeSYoiInz5LpZr8Jy7KZelwXwtzkHGidPmUjkFtKCEKTY9gIjdO8R61WIRdetDvKM4ei Klvas2uYklctGPrWYOeGqIZ7oYInMViADMgye0jqla7gRgFY555EurKpgTxZ4ySYsfdhttxR X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:134479 Archived-At: Hi Allen, > It is not possible to effectively use the -prune action with > find-dired. I think I can use it successfully. > 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") I get an error when I try to eval this. I think the backslashes should not be doubled. > results in the equivalent call: > > find . \( -name "foo*" -prune -o -name "*.el" -ls \) -ls > > Notably, this will list files matching foo* Can't you just leave out the explicit -ls in the arguments? Also, AFAIK "-prune" is about descending into directories, not about file names. Michael.