From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Benjamin Lewis Newsgroups: gmane.emacs.help Subject: Re: hideshow/java Date: Wed, 11 Dec 2002 13:45:05 -0800 Organization: Simon Fraser University Sender: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: References: <84u1hk273t.fsf@lucy.cs.uni-dortmund.de> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: main.gmane.org 1039643889 19158 80.91.224.249 (11 Dec 2002 21:58:09 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 11 Dec 2002 21:58:09 +0000 (UTC) Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 18MErd-0004xB-00 for ; Wed, 11 Dec 2002 22:57:57 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18MEke-0007iS-04 for gnu-help-gnu-emacs@m.gmane.org; Wed, 11 Dec 2002 16:50:44 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!cyclone.bc.net!news.sfu.ca!not-for-mail Original-Newsgroups: gnu.emacs.help,comp.emacs Original-Lines: 38 Original-NNTP-Posting-Host: marge.cs.sfu.ca Original-X-Trace: morgoth.sfu.ca 1039643109 19172 199.60.3.71 (11 Dec 2002 21:45:09 GMT) Original-X-Complaints-To: news@news.sfu.ca Original-NNTP-Posting-Date: 11 Dec 2002 21:45:09 GMT X-Attribution: Benjamin Lewis X-Yow: I wonder if there's anything GOOD on tonight? User-Agent: Gnus/5.090008 (Oort Gnus v0.08) Emacs/21.2 (i686-pc-linux-gnu) Cancel-Lock: sha1:zKrhh7iwiyXzfGIPkNTvdDUfWno= Original-Xref: shelby.stanford.edu gnu.emacs.help:108014 comp.emacs:76379 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:4545 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:4545 On Wed, 11 Dec 2002, Kai Großjohann wrote: > Benjamin Lewis writes: > >> Does anyone happen to know if there is anything out there like >> hideshow.el but that works properly with java when one uses an aligned >> parenthesis coding style? >> >> e.g. a style like >> >> for (whatever) >> { >> some code; >> more code; >> } >> >> (Actually, I seem to recall older versions of hideshow working, so >> perhaps I'll try to get one of these working if I can't find anything >> else). > > What happens if you do M-x hs-hide-block RET or whatever it is that > you need to do? Hiding blocks works fine. I think showing blocks generally works fine as well. The main problem is with toggling blocks; if I try to toggle a hidden block, it ends up hiding the entire class (even though I've set it up so that a "hide all" only hides the methods in the class). Hmmm... maybe if I got used to hiding and showing with the keyboard only it wouldn't be such a problem. I'll have to find something nicer to bind the hide/show functions to though; C-c @ C-h is pretty unwieldy. -- Benjamin Lewis "Love is a snowmobile racing across the tundra and then suddenly it flips over, pinning you underneath. At night, the ice weasels come." --Matt Groening