I often find myself debugging some stuff in the installed Emacs sources, which are in *.el.gz form. And the ability to rgrep would be quite handy. Is this readily possible?

  • 2
    ag is a grep-like tool that uses libarchive for fast search inside compressed files whenever possible. The -z switch enables that behaviour and has a good deal more performance compared to zgrep, especially when used in combination with a package like helm on many small files.
    – wasamasa
    Dec 30, 2014 at 23:24

1 Answer 1


You can use the command zrgrep, which was introduced in Emacs 23.2.


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.