Tools for grepping in Emacs
Alexander Belchenko
bialix at ukr.net
Sun Apr 12 07:48:20 BST 2009
I don't understand Emacs Lisp but I see you're using simple shell commands,
so I'll try to comment on this:
;; Run 'code' at the root of the branch which dirname is in.
(defmacro at-branch-root (dirname &rest code)
`(with-cd (search-upwards ".bzr" (expand-file-name ,dirname)) , at code))
There is `bzr root` command. I don't understand the snippet above, but it seems
you can use it to cd to branch root, is not?
(grep-find (format "bzr ls -V --null | xargs -0 grep -In %s" expression))))
`bzr ls` has option --kind=file. You can use it to search only in versioned files,
not in the symlinks or directories.
More information about the bazaar
mailing list