GNU bug report logs - #23919
hideif.el

Previous Next

Package: emacs;

Reported by: Kenneth Johansson <kenneth <at> southpole.se>

Date: Fri, 8 Jul 2016 16:00:02 UTC

Severity: minor

Tags: moreinfo

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 23919 in the body.
You can then email your comments to 23919 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#23919; Package emacs. (Fri, 08 Jul 2016 16:00:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Kenneth Johansson <kenneth <at> southpole.se>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Fri, 08 Jul 2016 16:00:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Kenneth Johansson <kenneth <at> southpole.se>
To: bug-gnu-emacs <at> gnu.org
Subject: hideif.el
Date: Fri, 8 Jul 2016 15:57:15 +0200
GNU Emacs 24.5.1 (x86_64-pc-linux-gnu, GTK+ Version 3.18.9) of 
2016-04-17 on lgw01-04, modified by Debian

I got a result I did not expect where the hide-ifdef mode was hiding 
more than it should .


here is the test file
-------------------------
main()
{
#if defined(A)
        not_this_A();
#else
#if defined (B)
        not_this_B();
#else
#if defined (C)
        this();
#endif
#endif
#endif

#if defined(A)
        not_this_A();
#elif defined (B)
        not_this_B();
#elif defined (C)
        this();
#endif

}
-------------------------


now doing hide when no variables is defined shows the correct result. 
but when you define C then only the top variant shows the this() 
function call and that do not look right to me. if this is intended then 
the whole mode is more or less useless.

tried to test the emacs version in git but it miss compiled so I do not 
know if this is already fixed.







Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#23919; Package emacs. (Tue, 15 Dec 2020 06:59:01 GMT) Full text and rfc822 format available.

Message #8 received at 23919 <at> debbugs.gnu.org (full text, mbox):

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Kenneth Johansson <kenneth <at> southpole.se>
Cc: 23919 <at> debbugs.gnu.org
Subject: Re: bug#23919: hideif.el
Date: Tue, 15 Dec 2020 07:58:47 +0100
[Message part 1 (text/plain, inline)]
Kenneth Johansson <kenneth <at> southpole.se> writes:

> now doing hide when no variables is defined shows the correct
> result. but when you define C then only the top variant shows the
> this() function call and that do not look right to me. if this is
> intended then the whole mode is more or less useless.

(This bug report unfortunately got no response at the time.)

I tried reproducing the test case in Emacs 28, and I got:

[Message part 2 (image/png, inline)]
[Message part 3 (text/plain, inline)]
Which looks correct to me.  Are you still seeing this problem in newer
Emacs versions?

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no

Added tag(s) moreinfo. Request was from Lars Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Tue, 15 Dec 2020 07:00:02 GMT) Full text and rfc822 format available.

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#23919; Package emacs. (Fri, 22 Jan 2021 18:33:02 GMT) Full text and rfc822 format available.

Message #13 received at 23919 <at> debbugs.gnu.org (full text, mbox):

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Kenneth Johansson <kenneth <at> southpole.se>
Cc: 23919 <at> debbugs.gnu.org
Subject: Re: bug#23919: hideif.el
Date: Fri, 22 Jan 2021 19:32:21 +0100
Lars Ingebrigtsen <larsi <at> gnus.org> writes:

> Which looks correct to me.  Are you still seeing this problem in newer
> Emacs versions?

More information was requested, but no response was given within a
month, so I'm closing this bug report.  If the problem still exists,
please respond to this email and we'll reopen the bug report.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




bug closed, send any further explanations to 23919 <at> debbugs.gnu.org and Kenneth Johansson <kenneth <at> southpole.se> Request was from Lars Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Fri, 22 Jan 2021 18:33:03 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Sat, 20 Feb 2021 12:24:05 GMT) Full text and rfc822 format available.

This bug report was last modified 3 years and 38 days ago.

Previous Next


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