From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Phil Sainty Newsgroups: gmane.emacs.bugs Subject: bug#27456: 25.2; Not possible to use -prune with find-dired Date: Sun, 9 Sep 2018 17:22:21 +1200 Message-ID: <4a51546f-d4b6-739e-5cc2-55c5f5694b33@orcon.net.nz> References: <87k243qm3z.fsf@felesatra.moe> <87lg8bz96e.fsf@web.de> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Trace: blaine.gmane.org 1536470470 18591 195.159.176.226 (9 Sep 2018 05:21:10 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 9 Sep 2018 05:21:10 +0000 (UTC) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 To: 27456@debbugs.gnu.org, michael_heerdegen@web.de, darkfeline@felesatra.moe Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Sep 09 07:21:06 2018 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 1fys9i-0004lz-BD for geb-bug-gnu-emacs@m.gmane.org; Sun, 09 Sep 2018 07:21:06 +0200 Original-Received: from localhost ([::1]:46111 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fysBo-0002fZ-U8 for geb-bug-gnu-emacs@m.gmane.org; Sun, 09 Sep 2018 01:23:16 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:50680) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fysBe-0002Tn-Se for bug-gnu-emacs@gnu.org; Sun, 09 Sep 2018 01:23:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fysBa-00057q-Ql for bug-gnu-emacs@gnu.org; Sun, 09 Sep 2018 01:23:06 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:45748) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fysBa-00057g-Ke for bug-gnu-emacs@gnu.org; Sun, 09 Sep 2018 01:23:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1fysBa-0004zr-Dx for bug-gnu-emacs@gnu.org; Sun, 09 Sep 2018 01:23:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Phil Sainty Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 09 Sep 2018 05:23:02 +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.153647055119165 (code B ref 27456); Sun, 09 Sep 2018 05:23:02 +0000 Original-Received: (at 27456) by debbugs.gnu.org; 9 Sep 2018 05:22:31 +0000 Original-Received: from localhost ([127.0.0.1]:50766 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fysB4-0004z3-VA for submit@debbugs.gnu.org; Sun, 09 Sep 2018 01:22:31 -0400 Original-Received: from smtp-3.orcon.net.nz ([60.234.4.44]:42469) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fysB2-0004ys-52 for 27456@debbugs.gnu.org; Sun, 09 Sep 2018 01:22:29 -0400 Original-Received: from [150.107.172.19] (port=44733 helo=[192.168.20.103]) by smtp-3.orcon.net.nz with esmtpa (Exim 4.86_2) (envelope-from ) id 1fysAv-00077a-Qn; Sun, 09 Sep 2018 17:22:21 +1200 In-Reply-To: <87lg8bz96e.fsf@web.de> Content-Language: en-GB X-GeoIP: NZ X-Spam_score: -2.9 X-Spam_score_int: -28 X-Spam_bar: -- 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:150148 Archived-At: The two workarounds indicated here do work nicely. For reference, to list everything except a certain directory (.git, in this example), you could use either of the following option sets at the "Run find (with args):" prompt: -type d -name .git -prune , -true -type d -name .git -prune -false -o -true Despite that, I think it would be useful and consistent for `find-dired' to acquire the prefix argument behaviour of `rgrep': > With C-u prefix, you can edit the constructed shell command line > before it is executed. > With two C-u prefixes, directly edit and run `grep-find-command'. This would give some users a more familiar solution to the problem if they are not used to the particular find options needed to work around the problem (which was the situation I found myself in just the other day, so the new activity on this bug was very timely :) -Phil