unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: quintus@quintilianus.eu
Cc: 22425-done@debbugs.gnu.org
Subject: bug#22425: 24.5; hide-ifdef-mode does not consider #elif defined
Date: Thu, 21 Jan 2016 18:11:31 +0200	[thread overview]
Message-ID: <83wpr29aks.fsf@gnu.org> (raw)
In-Reply-To: <87k2n36xei.fsf@hades.cable.internal.west-ik.de> (quintus@quintilianus.eu)

> From: quintus@quintilianus.eu
> Date: Thu, 21 Jan 2016 11:26:45 +0100
> 
> the hide-ifdef-mode minor mode does not consider "#elif defined"
> lines. Example program demonstrating the issue:
> 
>     #include <stdio.h>
>     
>     int main()
>     {
>     #if defined(_WIN32)
>       printf("Windows\n");
>     #elif defined(__unix__)
>       printf("Unixish\n");
>     #else
>     #error unsupported system
>     #endif
>       return 0;
>     }
> 
> Trying to collapse only the "#if defined(_WIN32)" part or only the
> "#elif defined(__unix__)" part will not work. hide-ifdef-mode should
> allow that.

Thank you for taking time and effort to report this.

I can reproduce this in Emacs 24.5, but not in the current emacs-25
branch that will become Emacs 25.1.  So I guess this deficiency was
already fixed, and I'm therefore marking this bug done.





      reply	other threads:[~2016-01-21 16:11 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-01-21 10:26 bug#22425: 24.5; hide-ifdef-mode does not consider #elif defined quintus
2016-01-21 16:11 ` Eli Zaretskii [this message]

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=83wpr29aks.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=22425-done@debbugs.gnu.org \
    --cc=quintus@quintilianus.eu \
    /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).