Stories
Slash Boxes
Comments
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

use Perl Log In

Log In

[ Create a new account ]

jplindstrom (594)

jplindstrom
  (email not shown publicly)

Journal of jplindstrom (594)

Friday April 01, 2005
02:59 AM

Emacs tricks of the day: Replace in files; Diff & Merge

[ #23968 ]

In an earlier post I mentioned I didn't know how to search-n-replace in multiple files using Emacs.

It turns out there is no good way to do that out-of-the-box. But after an intense Google session I found this entry in the Emacs Wiki: GlobRep.

There are other options as well, mentioned on the SearchAndReplace page, but that page seems a bit chaotic, and I'm quite happy with GlobRep.

The other day I also discovered (well, discovered... I needed the functionality and looked for it) ediff, and especially ediff-directories. Very, very powerful diff and merge functionality, usable in a vague kind of way. In some way it's even better than Araxis Merge which is an accomplishment.

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
 Full
 Abbreviated
 Hidden
More | Login | Reply
Loading... please wait.
  • Ediff is one of the best reasons for staying in Emacs. I've been using Eclipse [eclipse.org] a lot recently and it's very, very good overall. But the diff utility just plain sucks after using ediff.

    For more info, look at the EdiffMode [emacswiki.org] page on the emacs wiki. There's good tips there.

    -Dom