As we all know, emacs is the king of editors, and the editor of kings . If
it's good enough for Bill Joy (of Sun, who originally wrote vi), it's good
enough for me. However, it is rather a large program, and learning it all
is, shall we say, a bit of a meal. And then you can learn something, think
it's wonderful, and when you go to use it, you've forgotten what iit's
called, or how to invoke it.
Which is where I come in :-) I'm sure I've used a function in the past where
you can narrow to a match (emacs allows you to restrict the part of a file
being edited in various ways, and then you can only see that part of the
file, and global replace operations only affect that part of the file.).
I've RTFM on narrowing and I've googled and I can only find references to
narrowing to a region, or narrowing to a function. What I want to do is
narrow to the subset of lines which match a regex. I'm sure I've done this
in the past, and indeed I think I've even forgotten it before as well :-)
Niall
Maintained by the ILUG website team. The aim of Linux.ie is to
support and help commercial and private users of Linux in Ireland. You can
display ILUG news in your own webpages, read backend
information to find out how. Networking services kindly provided by HEAnet, server kindly donated by
Dell. Linux is a trademark of Linus Torvalds,
used with permission. No penguins were harmed in the production or maintenance
of this highly praised website. Looking for the
Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!