unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#22378: 24.5; hide-ifdef wrongly handles "#if defined X"
       [not found] <2005394.41790131.1452848039357.JavaMail.root@zimbra39-e7.priv.proxad.net>
@ 2016-01-15  8:55 ` ydirson
  2016-01-15 18:30   ` Eli Zaretskii
       [not found]   ` <1510532977.20645294.1457972111266.JavaMail.root@zimbra39-e7.priv.proxad.net>
  0 siblings, 2 replies; 8+ messages in thread
From: ydirson @ 2016-01-15  8:55 UTC (permalink / raw)
  To: 22378

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

#if defined(A)
yes
#else
no
#endif

#if !defined(A)
no
#else
yes
#endif

#if defined B && !defined A
no
#else
yes
#endif
---->8----

In GNU Emacs 24.5.1 (x86_64-pc-linux-gnu, GTK+ Version 3.18.2)
 of 2015-10-24 on trouble, modified by Debian
Windowing system distributor `The X.Org Foundation', version 11.0.11703000
System Description:	Debian GNU/Linux testing (stretch)

Configured using:
 `configure --build x86_64-linux-gnu --prefix=/usr
 --sharedstatedir=/var/lib --libexecdir=/usr/lib
 --localstatedir=/var/lib --infodir=/usr/share/info
 --mandir=/usr/share/man --with-pop=yes
 --enable-locallisppath=/etc/emacs24:/etc/emacs:/usr/local/share/emacs/24.5/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/24.5/site-lisp:/usr/share/emacs/site-lisp
 --build x86_64-linux-gnu --prefix=/usr --sharedstatedir=/var/lib
 --libexecdir=/usr/lib --localstatedir=/var/lib
 --infodir=/usr/share/info --mandir=/usr/share/man --with-pop=yes
 --enable-locallisppath=/etc/emacs24:/etc/emacs:/usr/local/share/emacs/24.5/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/24.5/site-lisp:/usr/share/emacs/site-lisp
 --with-x=yes --with-x-toolkit=gtk3 --with-toolkit-scroll-bars
 'CFLAGS=-g -O2 -fstack-protector-strong -Wformat
 -Werror=format-security -Wall' CPPFLAGS=-D_FORTIFY_SOURCE=2
 LDFLAGS=-Wl,-z,relro'

Important settings:
  value of $LANG: en_US.UTF-8
  locale-coding-system: utf-8-unix

Major mode: C/l

Minor modes in effect:
  hide-ifdef-mode: t
  diff-auto-refine-mode: t
  show-paren-mode: t
  tooltip-mode: t
  electric-indent-mode: t
  mouse-wheel-mode: t
  menu-bar-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  blink-cursor-mode: t
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t
  column-number-mode: t
  line-number-mode: t
  transient-mark-mode: t
  abbrev-mode: t

Recent messages:
Hiding done
Hiding...
Hiding done
Hiding...
Hiding done
Auto-saving...
Hiding...
Hiding done
Hiding...
Hiding done

Load-path shadows:
/usr/share/emacs/24.5/site-lisp/debian-startup hides /usr/share/emacs/site-lisp/debian-startup
/usr/share/emacs24/site-lisp/flim/hex-util hides /usr/share/emacs/24.5/lisp/hex-util
/usr/share/emacs24/site-lisp/flim/md4 hides /usr/share/emacs/24.5/lisp/md4
/usr/share/emacs24/site-lisp/flim/sasl hides /usr/share/emacs/24.5/lisp/net/sasl
/usr/share/emacs24/site-lisp/flim/hmac-def hides /usr/share/emacs/24.5/lisp/net/hmac-def
/usr/share/emacs24/site-lisp/flim/sasl-digest hides /usr/share/emacs/24.5/lisp/net/sasl-digest
/usr/share/emacs24/site-lisp/flim/sasl-cram hides /usr/share/emacs/24.5/lisp/net/sasl-cram
/usr/share/emacs24/site-lisp/flim/ntlm hides /usr/share/emacs/24.5/lisp/net/ntlm
/usr/share/emacs24/site-lisp/flim/sasl-ntlm hides /usr/share/emacs/24.5/lisp/net/sasl-ntlm
/usr/share/emacs24/site-lisp/flim/hmac-md5 hides /usr/share/emacs/24.5/lisp/net/hmac-md5

Features:
(shadow sort gnus-util mail-extr emacsbug message format-spec rfc822 mml
mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev
gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util
mail-utils hideif conf-mode two-column vc vc-dispatcher smerge-mode
diff-mode easy-mmode help-fns mail-prsvr password-cache url-vars
mule-util etags ring help-mode make-mode dabbrev misearch multi-isearch
vc-git cc-langs cl-loaddefs cl-lib cc-mode cc-fonts easymenu cc-guess
cc-menus cc-cmds cc-styles cc-align cc-engine cc-vars cc-defs rect
sh-script smie executable paren cus-start cus-load server debian-el
debian-el-loaddefs dpkg-dev-el dpkg-dev-el-loaddefs time-date tooltip
electric uniquify ediff-hook vc-hooks lisp-float-type mwheel x-win x-dnd
tool-bar dnd fontset image regexp-opt fringe tabulated-list newcomment
lisp-mode prog-mode register page menu-bar rfn-eshadow timer select
scroll-bar mouse jit-lock font-lock syntax facemenu font-core frame cham
georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao
korean japanese hebrew greek romanian slovak czech european ethiopic
indian cyrillic chinese case-table epa-hook jka-cmpr-hook help simple
abbrev minibuffer nadvice loaddefs button faces cus-face macroexp files
text-properties overlay sha1 md5 base64 format env code-pages mule
custom widget hashtable-print-readable backquote make-network-process
dbusbind gfilenotify dynamic-setting system-font-setting
font-render-setting move-toolbar gtk x-toolkit x multi-tty emacs)

Memory information:
((conses 16 276436 32948)
 (symbols 48 24493 0)
 (miscs 40 766 3904)
 (strings 32 30487 9317)
 (string-bytes 1 902469)
 (vectors 16 21073)
 (vector-slots 8 1225676 187424)
 (floats 8 89 880)
 (intervals 56 21262 254)
 (buffers 960 57)
 (heap 1024 63382 3299))

-- 
Yann





^ permalink raw reply	[flat|nested] 8+ messages in thread

* bug#22378: 24.5; hide-ifdef wrongly handles "#if defined X"
  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
       [not found]   ` <1510532977.20645294.1457972111266.JavaMail.root@zimbra39-e7.priv.proxad.net>
  1 sibling, 1 reply; 8+ messages in thread
From: Eli Zaretskii @ 2016-01-15 18:30 UTC (permalink / raw)
  To: ydirson; +Cc: 22378

> 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?





^ permalink raw reply	[flat|nested] 8+ messages in thread

* bug#22378: 24.5; hide-ifdef wrongly handles "#if defined X"
  2016-01-15 18:30   ` Eli Zaretskii
@ 2016-01-15 21:56     ` ydirson
  2016-01-16  6:59       ` Eli Zaretskii
  0 siblings, 1 reply; 8+ messages in thread
From: ydirson @ 2016-01-15 21:56 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: 22378

> 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





^ permalink raw reply	[flat|nested] 8+ messages in thread

* bug#22378: 24.5; hide-ifdef wrongly handles "#if defined X"
  2016-01-15 21:56     ` ydirson
@ 2016-01-16  6:59       ` Eli Zaretskii
  0 siblings, 0 replies; 8+ messages in thread
From: Eli Zaretskii @ 2016-01-16  6:59 UTC (permalink / raw)
  To: ydirson; +Cc: 22378-done

> Date: Fri, 15 Jan 2016 22:56:58 +0100 (CET)
> From: ydirson@free.fr
> Cc: 22378@debbugs.gnu.org
> 
> * 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

Thanks.  With this recipe, I can reproduce this in Emacs 24.5, but not
with the current emacs-25 branch.  So I guess this bug was already
solved, and I'm marking the bug done.





^ permalink raw reply	[flat|nested] 8+ messages in thread

* bug#22378: 24.5; hide-ifdef wrongly handles "#if defined X"
       [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
  0 siblings, 1 reply; 8+ messages in thread
From: ydirson @ 2016-03-14 23:12 UTC (permalink / raw)
  To: 22378

Hello,

Thanks for this info.  But is there a defined timeframe for emacs25 yet ?
I'm constantly being hit by this bug, which basically makes hide-ifdef
unusable in emacs24, so I guess I'm not the only one getting hit :}

----- Mail original -----
> De: "Eli Zaretskii" <eliz@gnu.org>
> À: ydirson@free.fr
> Cc: 22378-done@debbugs.gnu.org
> Envoyé: Samedi 16 Janvier 2016 07:59:42
> Objet: Re: bug#22378: 24.5; hide-ifdef wrongly handles "#if defined X"
> 
> > Date: Fri, 15 Jan 2016 22:56:58 +0100 (CET)
> > From: ydirson@free.fr
> > Cc: 22378@debbugs.gnu.org
> > 
> > * 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
> 
> Thanks.  With this recipe, I can reproduce this in Emacs 24.5, but
> not
> with the current emacs-25 branch.  So I guess this bug was already
> solved, and I'm marking the bug done.
> 





^ permalink raw reply	[flat|nested] 8+ messages in thread

* bug#22378: 24.5; hide-ifdef wrongly handles "#if defined X"
  2016-03-14 23:12     ` ydirson
@ 2016-03-15  3:38       ` Eli Zaretskii
  2016-03-26 23:56         ` John Wiegley
  0 siblings, 1 reply; 8+ messages in thread
From: Eli Zaretskii @ 2016-03-15  3:38 UTC (permalink / raw)
  To: ydirson; +Cc: 22378

> Date: Tue, 15 Mar 2016 00:12:56 +0100 (CET)
> From: ydirson@free.fr
> 
> Thanks for this info.  But is there a defined timeframe for emacs25 yet ?
> I'm constantly being hit by this bug, which basically makes hide-ifdef
> unusable in emacs24, so I guess I'm not the only one getting hit :}

We hope to release in a couple of months.





^ permalink raw reply	[flat|nested] 8+ messages in thread

* bug#22378: 24.5; hide-ifdef wrongly handles "#if defined X"
  2016-03-15  3:38       ` Eli Zaretskii
@ 2016-03-26 23:56         ` John Wiegley
  2016-03-27  2:38           ` Eli Zaretskii
  0 siblings, 1 reply; 8+ messages in thread
From: John Wiegley @ 2016-03-26 23:56 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: ydirson, 22378

>>>>> Eli Zaretskii <eliz@gnu.org> writes:

>> Thanks for this info.  But is there a defined timeframe for emacs25 yet ?
>> I'm constantly being hit by this bug, which basically makes hide-ifdef
>> unusable in emacs24, so I guess I'm not the only one getting hit :}

> We hope to release in a couple of months.

Is this issue on our release critical list?  If it's existing behavior in 24,
it may be too late, depending on what changes are needed to fix it.

-- 
John Wiegley                  GPG fingerprint = 4710 CF98 AF9B 327B B80F
http://newartisans.com                          60E1 46C4 BD1A 7AC1 4BA2





^ permalink raw reply	[flat|nested] 8+ messages in thread

* bug#22378: 24.5; hide-ifdef wrongly handles "#if defined X"
  2016-03-26 23:56         ` John Wiegley
@ 2016-03-27  2:38           ` Eli Zaretskii
  0 siblings, 0 replies; 8+ messages in thread
From: Eli Zaretskii @ 2016-03-27  2:38 UTC (permalink / raw)
  To: John Wiegley; +Cc: ydirson, 22378

> From: John Wiegley <jwiegley@gmail.com>
> Cc: ydirson@free.fr,  22378@debbugs.gnu.org
> Date: Sat, 26 Mar 2016 16:56:58 -0700
> 
> >>>>> Eli Zaretskii <eliz@gnu.org> writes:
> 
> >> Thanks for this info.  But is there a defined timeframe for emacs25 yet ?
> >> I'm constantly being hit by this bug, which basically makes hide-ifdef
> >> unusable in emacs24, so I guess I'm not the only one getting hit :}
> 
> > We hope to release in a couple of months.
> 
> Is this issue on our release critical list?  If it's existing behavior in 24,
> it may be too late, depending on what changes are needed to fix it.

This bug is already fixed, so I don't think it matters.





^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2016-03-27  2:38 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [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
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

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