GNU bug report logs -
#22425
24.5; hide-ifdef-mode does not consider #elif defined
Previous Next
Reported by: quintus <at> quintilianus.eu
Date: Thu, 21 Jan 2016 11:07:02 UTC
Severity: normal
Found in version 24.5
Done: Eli Zaretskii <eliz <at> gnu.org>
Bug is archived. No further changes may be made.
Full log
Message #10 received at 22425-done <at> debbugs.gnu.org (full text, mbox):
> From: quintus <at> 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.
This bug report was last modified 9 years and 122 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.