From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: David Hansen Newsgroups: gmane.emacs.help Subject: Re: Problems with HideShow Date: Thu, 08 Mar 2007 19:19:52 +0100 Organization: disorganized Message-ID: <871wjzha2f.fsf@localhorst.mine.nu> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1173378332 25824 80.91.229.12 (8 Mar 2007 18:25:32 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 8 Mar 2007 18:25:32 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Mar 08 19:25:26 2007 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1HPNIr-0007A7-OU for geh-help-gnu-emacs@m.gmane.org; Thu, 08 Mar 2007 19:25:26 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HPNJ5-00017q-OW for geh-help-gnu-emacs@m.gmane.org; Thu, 08 Mar 2007 13:25:39 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HPNIo-00016I-3B for help-gnu-emacs@gnu.org; Thu, 08 Mar 2007 13:25:22 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HPNIm-00015a-7n for help-gnu-emacs@gnu.org; Thu, 08 Mar 2007 13:25:21 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HPNIm-00015W-0j for help-gnu-emacs@gnu.org; Thu, 08 Mar 2007 13:25:20 -0500 Original-Received: from main.gmane.org ([80.91.229.2] helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1HPNIX-0004DI-2f for help-gnu-emacs@gnu.org; Thu, 08 Mar 2007 13:25:05 -0500 Original-Received: from root by ciao.gmane.org with local (Exim 4.43) id 1HPNIU-0002So-0e for help-gnu-emacs@gnu.org; Thu, 08 Mar 2007 19:25:02 +0100 Original-Received: from e178028146.adsl.alicedsl.de ([85.178.28.146]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 08 Mar 2007 19:25:02 +0100 Original-Received: from david.hansen by e178028146.adsl.alicedsl.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 08 Mar 2007 19:25:02 +0100 X-Injected-Via-Gmane: http://gmane.org/ Mail-Followup-To: help-gnu-emacs@gnu.org Original-Lines: 28 Original-X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: e178028146.adsl.alicedsl.de Mail-Copies-To: nobody User-Agent: Gnus/5.110006 (No Gnus v0.6) Emacs/22.0.95 (gnu/linux) Cancel-Lock: sha1:j3Shd0UJhWZtfJ5h+n51wVOfv7g= X-detected-kernel: Linux 2.6, seldom 2.4 (older, 4) 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:41810 Archived-At: On Tue, 6 Mar 2007 19:38:55 +0000 (UTC) kj wrote: > The most common problem is that the command hs-hide-all fails to > fold some pretty simple/obvious blocks. > > For example, if I have a buffer with only this snippet: > > if ( x ) { > y = 0; > } > > ...hs-hide-all fails to fold the block. Works fine here (GNU Emacs 22, currently in pretest). What Emacs version are you using? BTW, there's M-x report-emacs-bug > Basically I need a "reversible folding" process that somehow > remembers the state of the folded code before folding. Is this > available already? I don't think so. But have a look at this page, maybe there's something interesting for you: http://www.emacswiki.org/cgi-bin/wiki/CategoryOutline David