unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Kenneth Johansson <kenneth@southpole.se>
To: 23919@debbugs.gnu.org
Subject: bug#23919: hideif.el
Date: Fri, 8 Jul 2016 15:57:15 +0200	[thread overview]
Message-ID: <577FB13B.1080603@southpole.se> (raw)

GNU Emacs 24.5.1 (x86_64-pc-linux-gnu, GTK+ Version 3.18.9) of 
2016-04-17 on lgw01-04, modified by Debian

I got a result I did not expect where the hide-ifdef mode was hiding 
more than it should .


here is the test file
-------------------------
main()
{
#if defined(A)
         not_this_A();
#else
#if defined (B)
         not_this_B();
#else
#if defined (C)
         this();
#endif
#endif
#endif

#if defined(A)
         not_this_A();
#elif defined (B)
         not_this_B();
#elif defined (C)
         this();
#endif

}
-------------------------


now doing hide when no variables is defined shows the correct result. 
but when you define C then only the top variant shows the this() 
function call and that do not look right to me. if this is intended then 
the whole mode is more or less useless.

tried to test the emacs version in git but it miss compiled so I do not 
know if this is already fixed.








             reply	other threads:[~2016-07-08 13:57 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-07-08 13:57 Kenneth Johansson [this message]
2020-12-15  6:58 ` bug#23919: hideif.el Lars Ingebrigtsen
2021-01-22 18:32   ` Lars Ingebrigtsen

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=577FB13B.1080603@southpole.se \
    --to=kenneth@southpole.se \
    --cc=23919@debbugs.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.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

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