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

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

Re: Code reading without ifdefs...


From: Mike Ballard
Subject: Re: Code reading without ifdefs...
Date: Thu, 17 Jul 2003 02:41:47 GMT
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1


> Is there effective way to get rid of #ifdefs in buffers with C code but
> in smart way, that is, only to see things that will be there after
> preprocessing?
> 
> Using Hide-Ifdef mode, that is, building hide-ifdef-env alist doesn't
> solve the problem because I don't know all things that will be defined
> after preprocessing or there is a way of building such list using
> preprocessor?
> 
> Another way is using C-c C-e (c-macro-expand) and it does the job, but
> too much.  Besaide #ifdefs all other directives are expended and that's
> bad. Is there a way of telling cpp only to deal whit #ifdefs and leave
> other directives.
> 

Not sure if it helps but I'll throw it out and let you decide -
cpp-highlight-buffer (change false face to invisible for example).  You
can define true/false/save the settings to be loaded when needed but I
don't know how you'd do it w/o knowing ahead of time (maybe cpp could help
with that?)...

Mike
-- 

mike.ballard--at--earthlink.net

  "Roses are red, violets are blue,
   I'm schizophrenic and so am I"


reply via email to

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