From: ydirson@free.fr
To: Eli Zaretskii <eliz@gnu.org>
Cc: 22378@debbugs.gnu.org
Subject: bug#22378: 24.5; hide-ifdef wrongly handles "#if defined X"
Date: Fri, 15 Jan 2016 22:56:58 +0100 (CET) [thread overview]
Message-ID: <101364547.44496204.1452895018210.JavaMail.root@zimbra39-e7.priv.proxad.net> (raw)
In-Reply-To: <83d1t2g0ge.fsf@gnu.org>
> De: "Eli Zaretskii" <eliz@gnu.org>
> À: ydirson@free.fr
> Cc: 22378@debbugs.gnu.org
> Envoyé: Vendredi 15 Janvier 2016 19:30:09
> Objet: Re: bug#22378: 24.5; hide-ifdef wrongly handles "#if defined X"
>
> > Date: Fri, 15 Jan 2016 09:55:01 +0100 (CET)
> > From: ydirson@free.fr
> >
> > With the following text in buffer, with "hide some ifdefs"
> > activated,
> > when I define/undef A (and whether B is defined or not) the first
> > block
> > properly switches between "yes" and "no", whereas all ther others
> > consistently stay at "yes"
> >
> > ---->8----
> > #ifdef A
> > yes
> > #else
> > no
> > #endif
> >
> > #if defined A
> > yes
> > #else
> > no
> > #endif
>
> I cannot reproduce this. I tried both Emacs 24.5 and the current
> emacs-25 branch, and both show the expected behavior.
>
> Can you provide a step by step recipe, starting with "emacs -Q", to
> reproduce the problem?
foo.txt having the contents in original report:
* emacs -Q foo.txt
* M-x hide-ifdef-mode
* C-c @ h
=> OK, everywhere "no"
* C-c @ d A
=> OK, everywhere "yes" except the "B && !A"
* C-c @ u A
=> only "#ifdef A" switches back
next prev parent reply other threads:[~2016-01-15 21:56 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <2005394.41790131.1452848039357.JavaMail.root@zimbra39-e7.priv.proxad.net>
2016-01-15 8:55 ` bug#22378: 24.5; hide-ifdef wrongly handles "#if defined X" ydirson
2016-01-15 18:30 ` Eli Zaretskii
2016-01-15 21:56 ` ydirson [this message]
2016-01-16 6:59 ` Eli Zaretskii
[not found] ` <1510532977.20645294.1457972111266.JavaMail.root@zimbra39-e7.priv.proxad.net>
2016-03-14 23:12 ` ydirson
2016-03-15 3:38 ` Eli Zaretskii
2016-03-26 23:56 ` John Wiegley
2016-03-27 2:38 ` Eli Zaretskii
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=101364547.44496204.1452895018210.JavaMail.root@zimbra39-e7.priv.proxad.net \
--to=ydirson@free.fr \
--cc=22378@debbugs.gnu.org \
--cc=eliz@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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.