From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Pascal Bourguignon Newsgroups: gmane.emacs.help Subject: Re: Hiding lines based on a regexp Date: Sat, 28 May 2005 01:02:11 +0200 Organization: [posted via Easynet Spain] Message-ID: <87br6wff2k.fsf@thalassa.informatimago.com> References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1117234987 6492 80.91.229.2 (27 May 2005 23:03:07 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 27 May 2005 23:03:07 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat May 28 01:03:02 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1Dbnqt-00031u-Um for geh-help-gnu-emacs@m.gmane.org; Sat, 28 May 2005 01:02:52 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DbnvF-0006Hn-Sb for geh-help-gnu-emacs@m.gmane.org; Fri, 27 May 2005 19:07:21 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!news100.image.dk!feed.news.tiscali.de!easynet-quince!easynet.net!easynet-post2!not-for-mail Original-Newsgroups: gnu.emacs.help User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) Cancel-Lock: sha1:9lFvHcma7j3yzZGfxxbKYuoKR8U= Original-Lines: 30 Original-NNTP-Posting-Host: 62.93.174.79 Original-X-Trace: DXC=3@G88W=6oM List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:27028 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:27028 "David Vanderschel" 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!"