help-emacs-windows
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [h-e-w] Global search/replace across files?


From: Dr Francis J. Wright
Subject: Re: [h-e-w] Global search/replace across files?
Date: Sun, 16 Jun 2002 17:25:24 +0100

From: "Peter Davis" <address@hidden>
To: "Dr Francis J. Wright" <address@hidden>; "Peter Davis"
<address@hidden>
Cc: <address@hidden>
Sent: Saturday, June 15, 2002 11:16 PM
Subject: Re: [h-e-w] Global search/replace across files?


> Thanks very much.  Is there a way to get dired to display all the
> subdirectories at one time?  I don't see how to mark all the makefiles in
> the tree, but that's probably just my own ignorance of dired.

Dired will display the requested directory followed by all its
subdirectories if you give ls the R switch:

  R  list subdirectories recursively

You can do this by invoking dired with a universal argument, which causes it
to prompt for ls switches.  This works by default in NT Emacs 21 and later
and it also works if you use GNU ls as an external ls program, e.g. from
Cygwin.  (It might work with other versions of ls.)

You can control such dired options via a menu or dialogue box if you install
dired-sort-menu, available via my web site, see below: select the Recursive
option.

Once you have all the subdirectories displayed, you can use the standard
dired regexp mark option (Regexp / Mark... menu item or %m key) to mark what
you want.

[If you are running an older version of NT Emacs then you could install the
version of ls-lisp from my web site.]

Francis

Dr Francis J. Wright   (at home)  | mailto: address@hidden
School of Mathematical Sciences   | tel: (020) 7882 5453 (direct)
Queen Mary, University of London  | fax: (020) 8981 9587 (dept.)
Mile End Road, London E1 4NS, UK  | http://centaur.maths.qmul.ac.uk/





reply via email to

[Prev in Thread] Current Thread [Next in Thread]