help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Hiding lines based on a regexp


From: Pascal Bourguignon
Subject: Re: Hiding lines based on a regexp
Date: Sat, 28 May 2005 01:02:11 +0200
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux)

"David Vanderschel" <DJV4@Austin.RR.com> 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!"


reply via email to

[Prev in Thread] Current Thread [Next in Thread]