From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Trent Buck" Newsgroups: gmane.emacs.devel Subject: [RFE] find-dired is annoying Date: Wed, 30 May 2007 03:22:37 +1000 Message-ID: <20070529172237.GA22131@baal.lan> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0654248313==" X-Trace: sea.gmane.org 1180459388 19172 80.91.229.12 (29 May 2007 17:23:08 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 29 May 2007 17:23:08 +0000 (UTC) Cc: trentbuck@gmail.com To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue May 29 19:23:07 2007 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1Ht5PP-0007D3-Ea for ged-emacs-devel@m.gmane.org; Tue, 29 May 2007 19:22:59 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ht5PO-0004fP-Q8 for ged-emacs-devel@m.gmane.org; Tue, 29 May 2007 13:22:58 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Ht5PL-0004fI-Dd for emacs-devel@gnu.org; Tue, 29 May 2007 13:22:55 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Ht5PH-0004bt-SY for emacs-devel@gnu.org; Tue, 29 May 2007 13:22:54 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ht5PH-0004bV-EB for emacs-devel@gnu.org; Tue, 29 May 2007 13:22:51 -0400 Original-Received: from omta02sl.mx.bigpond.com ([144.140.93.154]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Ht5PG-0005we-R9 for emacs-devel@gnu.org; Tue, 29 May 2007 13:22:51 -0400 Original-Received: from oaamta02sl.mx.bigpond.com ([155.143.223.85]) by omta02sl.mx.bigpond.com with ESMTP id <20070529172247.HENI10557.omta02sl.mx.bigpond.com@oaamta02sl.mx.bigpond.com>; Tue, 29 May 2007 17:22:47 +0000 Original-Received: from ares.lan ([155.143.223.85]) by oaamta02sl.mx.bigpond.com with ESMTP id <20070529172242.CPUM7229.oaamta02sl.mx.bigpond.com@ares.lan>; Tue, 29 May 2007 17:22:42 +0000 Original-Received: from baal.lan (baal.lan [192.168.1.3]) by ares.lan (Postfix) with SMTP id E2F2EBBEFD; Wed, 30 May 2007 03:22:37 +1000 (EST) Original-Received: by baal.lan (sSMTP sendmail emulation); Wed, 30 May 2007 03:22:37 +1000 User-Agent: Mutt/1.5.13 (2006-08-11) X-detected-kernel: Solaris 8 (2) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:71953 Archived-At: --===============0654248313== Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="WIyZ46R2i8wDzkSu" Content-Disposition: inline --WIyZ46R2i8wDzkSu Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable find-dired currently annoys me in two ways: It always inserts \( \) around my predicate. This is normally helpful, but occasionally is extremely annoying, for example when trying to use -prune: (find-dired "" "-name \\.svn -prune -o -type f") Secondly, recent versions of GNU find support the form -exec ls -ld {} + as well as the older -exec ls -ld {} \; As well as saving a bunch of forks and execs, the first form makes arguments line up better: $ find -maxdepth 1 -exec ls -ld {} \; | head -5 drwx------ 11 twb twb 592 2007-05-22 14:07 . drwx------ 4 twb twb 872 2007-05-22 14:00 ./Yi drwx------ 2 twb twb 176 2007-05-22 13:59 ./doc drwx------ 3 twb twb 72 2007-05-22 14:00 ./gtk drwx------ 3 twb twb 72 2007-05-22 14:00 ./vty $ find -maxdepth 1 -exec ls -ld {} + | head -5 drwx------ 11 twb twb 592 2007-05-22 14:07 . -rw------- 1 twb twb 2216 2007-05-22 14:00 ./Contributors.hs -rw------- 1 twb twb 19308 2007-05-22 13:59 ./LICENSE -rw------- 1 twb twb 1348 2007-05-22 14:00 ./Main.hs -rw------- 1 twb twb 2017 2007-05-22 14:00 ./Makefile Ideally these things would be defcustom'd somehow (currently they're hard-coded in find-dired's body). I haven't thought through the specifics; I'm airing what little thinking I've done so far so I don't forget it. --=20 Trent Buck --WIyZ46R2i8wDzkSu Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) iD8DBQFGXGFdLpef9iTtxAYRAtRnAJ9zol8Jvw+hejx+XimrcsA3WHrcvACfawsN JKQEXUIHi6QbXgc8OAGh17M= =xdgg -----END PGP SIGNATURE----- --WIyZ46R2i8wDzkSu-- --===============0654248313== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Emacs-devel mailing list Emacs-devel@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-devel --===============0654248313==--