Tools for grepping in Emacs

James Westby jw+debian at jameswestby.net
Tue Apr 28 14:35:11 BST 2009


On Sat, 2009-04-11 at 13:22 +1000, Jonathan Lange wrote:
> I use Emacs and Bazaar and I work on a very large project where I need
> to grep for things all the time, and where I can't assume that all the
> code lives in "*.py" files.
> 
> To make my life easier, I've written the attached elisp code, which
> lets me grep all of the versioned, non-binary files in a branch.

Have you tried bzr-grep?

  https://code.edge.launchpad.net/~vila/bzr/grep

I hacked a version recently that could grep in a revision as well,
but that's kind of incompatible with the above approach, and
requires a lot more calling out to grep.

Porting to something like grin may be a good idea.

  http://pypi.python.org/pypi/grin/1.1.1

though the "To Do" on that page suggests it is slow.


Thanks,

James




More information about the bazaar mailing list