unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Ergus <spacibba@aol.com>
To: help-gnu-emacs@gnu.org
Subject: Issue with hide-ifdef and cc-mode
Date: Thu, 27 May 2021 05:06:30 +0200	[thread overview]
Message-ID: <20210527030630.ys6pbkbtqui66iuz@Ergus> (raw)
In-Reply-To: 20210527030630.ys6pbkbtqui66iuz.ref@Ergus

Hi:

I am trying to use hide-ifdef to shadow code like:

#if 0
<code>
#endif

But I found that either

#if 0

or 

#if 1

produces the same result disabling the code inside.

Some slightly more complex examples like:

#define var 1
#ifdef var

doesn't work either (of course).

And when I try hif-evaluate-macro it says things like: 

false <= ‘#if 1’

or 

1 is not defined...

Do we have anything smarter in emacs to shows #if 0 codes? O is there
any extra customization or is there an issue in the package? any idea?

Also when I remove the #if macros from around the code the shadow face
persists.

Any help?





           reply	other threads:[~2021-05-27  3:06 UTC|newest]

Thread overview: expand[flat|nested]  mbox.gz  Atom feed
 [parent not found: <20210527030630.ys6pbkbtqui66iuz.ref@Ergus>]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20210527030630.ys6pbkbtqui66iuz@Ergus \
    --to=spacibba@aol.com \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).