any way i can block edit a program ?
i wrote a macro to do it in emacs
so it works like :
void foo ( int ... ) ; // collapsed.
it moves the body to temperary buffer, but i can't rely on this
any way i can block edit a program ?
i wrote a macro to do it in emacs
so it works like :
void foo ( int ... ) ; // collapsed.
it moves the body to temperary buffer, but i can't rely on this
Have you ever tried emacs' "folding mode"? It is triggered in the text with specially formed comments like this:
function foo
# {{{ this start a "fold"
{
/some/command
/another/command
return 0
}
# this ends a "fold" }}}
In this example you would only see the line with the functions name, everything else would be folded away.
Folding is even recursive, so you could open a top-level fold and see collapsed lower-level folds inside, which you could open again, etc.
I hope this helps.
bakunin
that is certenely much better of what i was using, .
many thanks .