GNU bug report logs - #22378
24.5; hide-ifdef wrongly handles "#if defined X"

Previous Next

Package: emacs;

Reported by: ydirson <at> free.fr

Date: Fri, 15 Jan 2016 16:46:01 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 #11 received at 22378 <at> debbugs.gnu.org (full text, mbox):

From: ydirson <at> free.fr
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 22378 <at> debbugs.gnu.org
Subject: Re: bug#22378: 24.5; hide-ifdef wrongly handles "#if defined X"
Date: Fri, 15 Jan 2016 22:56:58 +0100 (CET)
> De: "Eli Zaretskii" <eliz <at> gnu.org>
> À: ydirson <at> free.fr
> Cc: 22378 <at> 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 <at> 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




This bug report was last modified 9 years and 63 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.