List Matching Lines in Emacs
learned 2 new commands from a emacs hacker friend Jon Snader (jcs): multi-occur and multi-occur-in-matching-buffers.
See his blog about several ways of listing matching lines:
- Working With Matching Lines In Emacs (2012-01-15) By Jon Snader. @ Source irreal.org
there, he covered several ways to list matching lines in current buffer or existing buffers.
if you are new to emacs, you might think “i'll just call unix grep; one less thing to learn”. Actually, the emacs commands are much more convenient. I use them several times everyday for past years.
if you want to know the ways to find matching lines in files (as opposed to already opened files), see also: Emacs: Searching for Text in Files (grep, find).