all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* [RFE] find-dired is annoying
@ 2007-05-29 17:22 Trent Buck
  0 siblings, 0 replies; only message in thread
From: Trent Buck @ 2007-05-29 17:22 UTC (permalink / raw)
  To: emacs-devel; +Cc: trentbuck


[-- Attachment #1.1: Type: text/plain, Size: 1393 bytes --]

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.
-- 
Trent Buck

[-- Attachment #1.2: Digital signature --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

[-- Attachment #2: Type: text/plain, Size: 142 bytes --]

_______________________________________________
Emacs-devel mailing list
Emacs-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-devel

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2007-05-29 17:22 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-05-29 17:22 [RFE] find-dired is annoying Trent Buck

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.