unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* limit to show codes for one platform?
@ 2007-11-12  4:12 William Xu
  0 siblings, 0 replies; 3+ messages in thread
From: William Xu @ 2007-11-12  4:12 UTC (permalink / raw)
  To: help-gnu-emacs

In C source codes, when there are many #ifdef defined for various
platforms, is there a way to limit the source codes to the platform i'm
interested in, and hide all other platforms?

For instance, 

,----
| #ifdef VMS
| int a;
| #endif
| 
| #ifdef MACOS
| int b;
| #endif
`----

Suppose i'm only interested in MACOS platform, i'd like it to hide VMS
related codes.

-- 
William

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

* Re: limit to show codes for one platform?
       [not found] <mailman.3317.1194840890.18990.help-gnu-emacs@gnu.org>
@ 2007-11-12  9:07 ` Johan Bockgård
  2007-11-13  3:00   ` William Xu
  0 siblings, 1 reply; 3+ messages in thread
From: Johan Bockgård @ 2007-11-12  9:07 UTC (permalink / raw)
  To: help-gnu-emacs

William Xu <william.xwl@gmail.com> writes:

> In C source codes, when there are many #ifdef defined for various
> platforms, is there a way to limit the source codes to the platform i'm
> interested in, and hide all other platforms?

hide-ifdef-mode

-- 
Johan Bockgård

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

* Re: limit to show codes for one platform?
  2007-11-12  9:07 ` limit to show codes for one platform? Johan Bockgård
@ 2007-11-13  3:00   ` William Xu
  0 siblings, 0 replies; 3+ messages in thread
From: William Xu @ 2007-11-13  3:00 UTC (permalink / raw)
  To: help-gnu-emacs

bojohan+news@dd.chalmers.se (Johan Bockgård) writes:

> hide-ifdef-mode

Thanks ! 

-- 
William

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

end of thread, other threads:[~2007-11-13  3:00 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <mailman.3317.1194840890.18990.help-gnu-emacs@gnu.org>
2007-11-12  9:07 ` limit to show codes for one platform? Johan Bockgård
2007-11-13  3:00   ` William Xu
2007-11-12  4:12 William Xu

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