From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Thien-Thi Nguyen Newsgroups: gmane.emacs.help Subject: Re: Hiding lines based on a regexp Date: Sat, 28 May 2005 11:37:01 +0200 Organization: sometimes Message-ID: <7ey89z7kua.fsf@ada2.unipv.it> References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1117273386 11158 80.91.229.2 (28 May 2005 09:43:06 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 28 May 2005 09:43:06 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat May 28 11:43:04 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1Dbxq3-00023e-0z for geh-help-gnu-emacs@m.gmane.org; Sat, 28 May 2005 11:42:39 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DbxuU-00063w-QG for geh-help-gnu-emacs@m.gmane.org; Sat, 28 May 2005 05:47:14 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news.uchicago.edu!newsread.com!news-xfer.newsread.com!news.glorb.com!newsfeed.stueberl.de!feed.news.tiscali.de!news.belwue.de!LF.net!quimby.gnus.org!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 24 Original-NNTP-Posting-Host: ada2.unipv.it Original-X-Trace: quimby.gnus.org 1117273022 27484 193.204.44.145 (28 May 2005 09:37:02 GMT) Original-X-Complaints-To: usenet@quimby.gnus.org Original-NNTP-Posting-Date: Sat, 28 May 2005 09:37:02 +0000 (UTC) User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) Cancel-Lock: sha1:gKLiC711QDdwPAEah+5Y+5mq8wI= Original-Xref: shelby.stanford.edu gnu.emacs.help:131578 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor 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:27037 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:27037 Travis Spencer writes: > hs-hide-block combined w/ a macro might just work. hideshow never hides the block completely -- the first line is always shown -- so maybe it doesn't fit the OP's requirements. on the other hand, if the debugging output code is isolated in a code block (between curly braces for java), hideshow can handle that block just like any other. unfortunately, hideshow is not as general as it could be. someone needs to pry it away from its regexp dependency, babysit-with-tlc the inevitable withdrawal symptoms, and gently detox the design to the point where separation of definition (of a block) and action (on a block) would allow easier behavior customization, then finally re-introduce regexps as a particular flavor of block definition. the fine hack is to twist and get twisted, be missed but not misted, make list while unlisted, assist the acysted. eventually we will see, the blind doctor said to me... thi