"David Vanderschel" <[EMAIL PROTECTED]> writes: > Could someone please point me to a mechanism that > would allow me to temporarily hide from display > certain lines in a file based on a matching regular > expression? There is somewhat similar functionality > with hide-ifdef-mode. However, I want something less > clever and more general. > > What I have in mind is to suppress lines I have > inserted into a program for debugging purpose, but > which lines can make examining the code more > difficult. For example, when coding in java, there > are times when I would like to hide lines that match > "assert" or "system.out.println". > > Though I usually manage to squeeze my debugging > statements onto a single line, it would be even better > if the mechanism could recognize that a matching > language statement was spread over multiple lines.
If the parts you want to hide are at the beginning or at the end of a buffer, you could use narrow-to-region (and then widden). -- __Pascal Bourguignon__ http://www.informatimago.com/ Cats meow out of angst "Thumbs! If only we had thumbs! We could break so much!" _______________________________________________ Help-gnu-emacs mailing list Help-gnu-emacs@gnu.org http://lists.gnu.org/mailman/listinfo/help-gnu-emacs