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

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

Re: fold code at {}


From: Robert Thorpe
Subject: Re: fold code at {}
Date: 8 Jan 2007 05:35:33 -0800
User-agent: G2/1.0

Gary Wessle wrote:
> Hi
>
> how can I fold the c++ code
> if( xxx ) {
>  ...
> }else{
> ...
>  if( ... ){
>   ...
>  }
> }

What do you want to fold the above into?

> C-c @ C-h will fold only
> if( xxx ) {
>  ...
> }else{
>
> but not the rest of the parent if block.

Why should the rest of the block be folded?
I don't think you can do what you want to do with Hide/Show mode.
Hide/Show mode only responds to scopes in a language, and can only fold
around them.

Maybe if you could explain the problem again someone could suggest
something that would help.



reply via email to

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