>>>> "Robert" == Robert Pluim
<rpluim(a)bigfoot.com> writes:
Robert> nbecker(a)fred.net writes:
> Since adding support for debugging to my latest c++ code,
it's become
> ugly with #ifdefs. Wouldn't it be cool to be able to fold them away?
> Since C-mode already knows how to parse the ifdefs and find the
> matching endif (the hard part), it may be possible to add such a
> feature. I imagine being able to set local file variables to make all
> that crap disappear, for example.
Robert> Hmm, there's a hideif.el that's part of the c-support package. It
Robert> says:
Robert> ;;; hide-ifdef-mode.el --- hides selected code within ifdef.
Robert> Perhaps that does what you want?
Thanks. That is just about right.
Now I just have to figure out how to make it automatically happen when
I visit a file. I can almost do it with:
// Local Variables:
// eval: (hide-ifdef-mode 1)
// End:
The only problem being, I don't want to be asked whether to process
the eval every time.