* fold code at {}
@ 2007-01-07 17:16 Gary Wessle
2007-01-08 13:35 ` Robert Thorpe
0 siblings, 1 reply; 3+ messages in thread
From: Gary Wessle @ 2007-01-07 17:16 UTC (permalink / raw)
Hi
how can I fold the c++ code
if( xxx ) {
...
}else{
...
if( ... ){
...
}
}
C-c @ C-h will fold only
if( xxx ) {
...
}else{
but not the rest of the parent if block.
thanks
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: fold code at {}
2007-01-07 17:16 fold code at {} Gary Wessle
@ 2007-01-08 13:35 ` Robert Thorpe
2007-01-08 20:27 ` Gary Wessle
0 siblings, 1 reply; 3+ messages in thread
From: Robert Thorpe @ 2007-01-08 13:35 UTC (permalink / raw)
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.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: fold code at {}
2007-01-08 13:35 ` Robert Thorpe
@ 2007-01-08 20:27 ` Gary Wessle
0 siblings, 0 replies; 3+ messages in thread
From: Gary Wessle @ 2007-01-08 20:27 UTC (permalink / raw)
"Robert Thorpe" <rthorpe@realworldtech.com> writes:
> 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.
I have the if else-if else blocks and want to fold it all. the block
my have nested if blocks as well.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2007-01-08 20:27 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-01-07 17:16 fold code at {} Gary Wessle
2007-01-08 13:35 ` Robert Thorpe
2007-01-08 20:27 ` Gary Wessle
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).