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#32668: 26.1; Give find-dired prefix argument behaviour equivalent to that of rgrep Date: Sun, 9 Sep 2018 21:34:08 +1200 Message-ID: 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 1536485592 24234 195.159.176.226 (9 Sep 2018 09:33:12 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 9 Sep 2018 09:33:12 +0000 (UTC) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 To: 32668@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Sep 09 11:33:08 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 1fyw5c-0006Dh-7h for geb-bug-gnu-emacs@m.gmane.org; Sun, 09 Sep 2018 11:33:08 +0200 Original-Received: from localhost ([::1]:46615 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fyw7i-0002jc-9J for geb-bug-gnu-emacs@m.gmane.org; Sun, 09 Sep 2018 05:35:18 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:48392) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fyw7Z-0002jX-9O for bug-gnu-emacs@gnu.org; Sun, 09 Sep 2018 05:35:10 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fyw7U-0004zt-F7 for bug-gnu-emacs@gnu.org; Sun, 09 Sep 2018 05:35:09 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:45806) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fyw7U-0004zf-AS for bug-gnu-emacs@gnu.org; Sun, 09 Sep 2018 05:35:04 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1fyw7S-0002xV-Gz for bug-gnu-emacs@gnu.org; Sun, 09 Sep 2018 05:35:04 -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 09:35:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 32668 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.153648566811310 (code B ref -1); Sun, 09 Sep 2018 09:35:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 9 Sep 2018 09:34:28 +0000 Original-Received: from localhost ([127.0.0.1]:50824 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fyw6t-0002wL-Ol for submit@debbugs.gnu.org; Sun, 09 Sep 2018 05:34:28 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:55504) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fyw6r-0002w7-BX for submit@debbugs.gnu.org; Sun, 09 Sep 2018 05:34:26 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fyw6k-0003p2-WD for submit@debbugs.gnu.org; Sun, 09 Sep 2018 05:34:19 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:53320) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1fyw6k-0003ou-SS for submit@debbugs.gnu.org; Sun, 09 Sep 2018 05:34:18 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:48249) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fyw6j-0002gY-Q4 for bug-gnu-emacs@gnu.org; Sun, 09 Sep 2018 05:34:18 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fyw6f-0003k9-Q2 for bug-gnu-emacs@gnu.org; Sun, 09 Sep 2018 05:34:17 -0400 Original-Received: from smtp-3.orcon.net.nz ([60.234.4.44]:54206) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fyw6f-0003hV-FC for bug-gnu-emacs@gnu.org; Sun, 09 Sep 2018 05:34:13 -0400 Original-Received: from [150.107.172.19] (port=13738 helo=[192.168.20.103]) by smtp-3.orcon.net.nz with esmtpa (Exim 4.86_2) (envelope-from ) id 1fyw6b-0001Ki-8O for bug-gnu-emacs@gnu.org; Sun, 09 Sep 2018 21:34:10 +1200 Content-Language: en-GB X-GeoIP: NZ X-Spam_score: -2.9 X-Spam_score_int: -28 X-Spam_bar: -- X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] 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:150156 Archived-At: In bug#27456 "Not possible to use -prune with find-dired", workarounds were provided for the issue that, due to the way that `find-dired' constructs its find command, some common usage patterns for the `find' command can't be used with `find-dired'. I think it would be useful and consistent for `find-dired' to acquire the prefix argument behaviour of `rgrep', which does the following: > 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 [the find command]. Giving the user access to edit the final command before it is executed would allow users to massage otherwise-unusable syntax into a working command. This would give users an alternative solution to the kind of problem presented in the aforementioned bug report, and would be especially useful for those who are unfamiliar with the particular find options needed to work around the problem at present. In GNU Emacs 26.1 (build 1, x86_64-pc-linux-gnu, X toolkit, Xaw3d scroll bars) of 2018-06-19 built on shodan Windowing system distributor 'The X.Org Foundation', version 11.0.11906000 System Description: Ubuntu 18.04.1 LTS Recent messages: For information about GNU Emacs and the GNU system, type C-h C-a. funcall-interactively: End of buffer Configured using: 'configure --prefix=/home/phil/emacs/26.1/usr/local --with-x-toolkit=lucid --without-sound' Configured features: XAW3D XPM JPEG TIFF GIF PNG RSVG IMAGEMAGICK DBUS GSETTINGS NOTIFY GNUTLS LIBXML2 FREETYPE XFT ZLIB TOOLKIT_SCROLL_BARS LUCID X11 THREADS LCMS2 Important settings: value of $LANG: en_NZ.UTF-8 locale-coding-system: utf-8 Major mode: Dired by name Minor modes in effect: show-paren-mode: t minibuffer-depth-indicate-mode: t winner-mode: t global-hl-line-mode: t tooltip-mode: t global-eldoc-mode: t electric-indent-mode: t mouse-wheel-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t buffer-read-only: t line-number-mode: t transient-mark-mode: t Load-path shadows: None found. Features: (shadow sort mail-extr emacsbug message rmc puny seq byte-opt gv bytecomp byte-compile cconv cl-loaddefs cl-lib format-spec rfc822 mml mml-sec password-cache epa derived epg epg-config gnus-util rmail rmail-loaddefs mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils dired-x easymenu paren mb-depth winner ring hl-line dired dired-loaddefs advice elec-pair time-date mule-util tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type mwheel term/x-win x-win term/common-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list replace newcomment text-mode elisp-mode lisp-mode prog-mode register page menu-bar rfn-eshadow isearch timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core term/tty-colors frame cl-generic cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese composite charscript charprop case-table epa-hook jka-cmpr-hook help simple abbrev obarray minibuffer cl-preloaded nadvice loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote dbusbind inotify lcms2 dynamic-setting system-font-setting font-render-setting x-toolkit x multi-tty make-network-process emacs) Memory information: ((conses 16 101384 15323) (symbols 48 20776 1) (miscs 40 108 168) (strings 32 30269 886) (string-bytes 1 789963) (vectors 16 15400) (vector-slots 8 503524 6466) (floats 8 58 59) (intervals 56 268 0) (buffers 992 13))