Tools for grepping in Emacs

Jonathan Lange jml at mumak.net
Sat Apr 11 04:22:55 BST 2009


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. It
also has a couple of functions and macros that might be useful to
others writing things like this in Emacs.

To use it:
  (require 'bzr-tools)

and then:
  M-x bzr-grep

and enter the regex you are searching for, followed by the directory.
It will grep the whole branch to which the directory belongs -- to me,
this is a feature.

My elisp-fu is very weak, and I needed a lot of help even to get this
much done. I'd love some feedback on how the code could be nicer, or
suggestions on how this should best be maintained / shared with the
rest of the Bazaar / Emacs community.

jml
-------------- next part --------------
A non-text attachment was scrubbed...
Name: bzr-tools.el
Type: text/x-emacs-lisp
Size: 2707 bytes
Desc: not available
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20090411/a218cf9c/attachment.bin 


More information about the bazaar mailing list