Sed for Emacs, with a few simple functions.