unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* c-mode preprocessor directives editing
@ 2005-05-30 11:41 Per Nordlöw
  2005-05-30 21:47 ` Stefan Monnier
  0 siblings, 1 reply; 2+ messages in thread
From: Per Nordlöw @ 2005-05-30 11:41 UTC (permalink / raw)


Is there a minor-mode/extension that can do clever things with
conditional preprocessor expressions like #if ??? or #ifdef ??? in c-mode?
such as
- syntax-highlighting/greying-out of "#if 0"-regions - folding/unfolding
of "#ifdef-#endif"-regions - strip-away "#ifdef-#endif"-regions given the
definition of associated preprocessor variable-names.

Thanks in advance,
Per Nordlöw

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: c-mode preprocessor directives editing
  2005-05-30 11:41 c-mode preprocessor directives editing Per Nordlöw
@ 2005-05-30 21:47 ` Stefan Monnier
  0 siblings, 0 replies; 2+ messages in thread
From: Stefan Monnier @ 2005-05-30 21:47 UTC (permalink / raw)


> Is there a minor-mode/extension that can do clever things with
> conditional preprocessor expressions like #if ??? or #ifdef ??? in c-mode?
> such as
> - syntax-highlighting/greying-out of "#if 0"-regions - folding/unfolding
> of "#ifdef-#endif"-regions - strip-away "#ifdef-#endif"-regions given the
> definition of associated preprocessor variable-names.

M-x hide-ifdef-mode RET


        Stefan

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2005-05-30 21:47 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-05-30 11:41 c-mode preprocessor directives editing Per Nordlöw
2005-05-30 21:47 ` Stefan Monnier

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).