From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Allen Li Newsgroups: gmane.emacs.bugs Subject: bug#27456: 25.2; Not possible to use -prune with find-dired Date: Thu, 22 Jun 2017 23:00:48 -0700 Message-ID: <87k243qm3z.fsf@felesatra.moe> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1498197736 10872 195.159.176.226 (23 Jun 2017 06:02:16 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 23 Jun 2017 06:02:16 +0000 (UTC) To: 27456@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Jun 23 08:02:12 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 1dOHfX-0002WT-Nc for geb-bug-gnu-emacs@m.gmane.org; Fri, 23 Jun 2017 08:02:11 +0200 Original-Received: from localhost ([::1]:33710 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dOHfZ-0000Hf-6q for geb-bug-gnu-emacs@m.gmane.org; Fri, 23 Jun 2017 02:02:13 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:41948) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dOHfT-0000Gn-AY for bug-gnu-emacs@gnu.org; Fri, 23 Jun 2017 02:02:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dOHfO-0003NL-GL for bug-gnu-emacs@gnu.org; Fri, 23 Jun 2017 02:02:07 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:59349) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dOHfO-0003NF-D8 for bug-gnu-emacs@gnu.org; Fri, 23 Jun 2017 02:02:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1dOHfO-0005tC-5s for bug-gnu-emacs@gnu.org; Fri, 23 Jun 2017 02:02:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Allen Li Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 23 Jun 2017 06:02:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 27456 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.149819766622570 (code B ref -1); Fri, 23 Jun 2017 06:02:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 23 Jun 2017 06:01:06 +0000 Original-Received: from localhost ([127.0.0.1]:33793 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dOHeT-0005ry-Mu for submit@debbugs.gnu.org; Fri, 23 Jun 2017 02:01:05 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:50790) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dOHeR-0005rO-MD for submit@debbugs.gnu.org; Fri, 23 Jun 2017 02:01:03 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dOHeL-00033c-Td for submit@debbugs.gnu.org; Fri, 23 Jun 2017 02:00:58 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:46125) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1dOHeL-00033U-RP for submit@debbugs.gnu.org; Fri, 23 Jun 2017 02:00:57 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:41761) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dOHeK-0008Hx-QW for bug-gnu-emacs@gnu.org; Fri, 23 Jun 2017 02:00:57 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dOHeF-00031y-Vx for bug-gnu-emacs@gnu.org; Fri, 23 Jun 2017 02:00:56 -0400 Original-Received: from solmarta.felesatra.moe ([198.199.111.162]:49344) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dOHeF-00031a-PI for bug-gnu-emacs@gnu.org; Fri, 23 Jun 2017 02:00:51 -0400 Original-Received: from localhost (c-73-70-42-168.hsd1.ca.comcast.net [73.70.42.168]) by solmarta.felesatra.moe (Postfix) with ESMTPSA id 0F96CFFEAC for ; Fri, 23 Jun 2017 02:00:47 -0400 (EDT) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x 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:133827 Archived-At: 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)