From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Kevin Rodgers Newsgroups: gmane.emacs.bugs Subject: bug#15504: 24.3; find-dired's numerous prompts are inflexible and annoying Date: Thu, 03 Oct 2013 22:16:34 -0600 Message-ID: References: <8761tg1m4z.fsf@gmail.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1380860307 6657 80.91.229.3 (4 Oct 2013 04:18:27 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 4 Oct 2013 04:18:27 +0000 (UTC) To: 15504@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Oct 04 06:18:26 2013 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1VRwqO-0002zE-S7 for geb-bug-gnu-emacs@m.gmane.org; Fri, 04 Oct 2013 06:18:25 +0200 Original-Received: from localhost ([::1]:46246 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VRwqO-0000Bb-F7 for geb-bug-gnu-emacs@m.gmane.org; Fri, 04 Oct 2013 00:18:24 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:37537) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VRwqC-00008U-9c for bug-gnu-emacs@gnu.org; Fri, 04 Oct 2013 00:18:22 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VRwq2-0001fZ-Rh for bug-gnu-emacs@gnu.org; Fri, 04 Oct 2013 00:18:12 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:44634) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VRwq2-0001fV-OE for bug-gnu-emacs@gnu.org; Fri, 04 Oct 2013 00:18:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1VRwq2-0001rP-F2 for bug-gnu-emacs@gnu.org; Fri, 04 Oct 2013 00:18:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Kevin Rodgers Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 04 Oct 2013 04:18:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 15504 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.13808602247057 (code B ref -1); Fri, 04 Oct 2013 04:18:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 4 Oct 2013 04:17:04 +0000 Original-Received: from localhost ([127.0.0.1]:52919 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VRwp5-0001pj-OP for submit@debbugs.gnu.org; Fri, 04 Oct 2013 00:17:04 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:35689) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VRwp2-0001pF-Jz for submit@debbugs.gnu.org; Fri, 04 Oct 2013 00:17:01 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VRwot-0001Y5-0I for submit@debbugs.gnu.org; Fri, 04 Oct 2013 00:17:00 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:44660) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VRwos-0001Y1-U7 for submit@debbugs.gnu.org; Fri, 04 Oct 2013 00:16:50 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:37400) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VRwol-00004y-K2 for bug-gnu-emacs@gnu.org; Fri, 04 Oct 2013 00:16:50 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VRwoe-0001W3-6D for bug-gnu-emacs@gnu.org; Fri, 04 Oct 2013 00:16:43 -0400 Original-Received: from plane.gmane.org ([80.91.229.3]:34655) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VRwod-0001Vv-W0 for bug-gnu-emacs@gnu.org; Fri, 04 Oct 2013 00:16:36 -0400 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1VRwob-0001kv-8v for bug-gnu-emacs@gnu.org; Fri, 04 Oct 2013 06:16:33 +0200 Original-Received: from 70-59-0-106.hlrn.qwest.net ([70.59.0.106]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 04 Oct 2013 06:16:33 +0200 Original-Received: from kevin.d.rodgers by 70-59-0-106.hlrn.qwest.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 04 Oct 2013 06:16:33 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 49 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 70-59-0-106.hlrn.qwest.net User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.4; en-US; rv:1.9.2.28) Gecko/20120306 Thunderbird/3.1.20 In-Reply-To: <8761tg1m4z.fsf@gmail.com> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.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-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:78913 Archived-At: On 10/1/13 7:45 PM, Trent W. Buck wrote: > I prefer to do M-x grep RET and then type something complicated like > > grep -r --include '*.c' --exclude-dir .git . -e foo -e bar > > ...rather than M-x rgrep which has lots of stupid prompts that then get > stuck together in a fixed kind of way. > > In the same vein, I hate M-x find dired RET multiple prompts. For a few > years I've been using a munged up replacement that just asks for a > single command, and runs it (below). The history handling is a bit > buggered, and it breaks the existing multi-prompt style (presumably some > people prefer it). I'm afraid I don't get what you're saying, since `M-x find-dired' only prompts for the directory to search and the long string of arguments you love to type: find-dired is an interactive autoloaded Lisp function in `find-dired.el'. (find-dired DIR ARGS) Run `find' and go into Dired mode on a buffer of the output. The command run (after changing into DIR) is find . \( ARGS \) -ls except that the variable `find-ls-option' specifies what to use as the final argument. And the implementation confirms the documentation: (defun find-dired (dir args) ... (interactive (list (read-file-name "Run find in directory: " nil "" t) (read-string "Run find (with args): " find-args '(find-args-history . 1)))) ... > PS: find -ls's output is actually crap, because the entries don't line > up properly and files with spaces become "foo\ bar" which dired mode > doesn't like, so I generally end up doing "find -exec ls -lidsh {} +". Apparently that is what `find-ls-option' is for. -- Kevin Rodgers Denver, Colorado, USA