From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Kenneth Johansson Newsgroups: gmane.emacs.bugs Subject: bug#23919: hideif.el Date: Fri, 8 Jul 2016 15:57:15 +0200 Message-ID: <577FB13B.1080603@southpole.se> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1467993810 15407 80.91.229.3 (8 Jul 2016 16:03:30 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 8 Jul 2016 16:03:30 +0000 (UTC) To: 23919@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Jul 08 18:03:18 2016 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1bLYFK-0002sm-3E for geb-bug-gnu-emacs@m.gmane.org; Fri, 08 Jul 2016 18:03:18 +0200 Original-Received: from localhost ([::1]:46529 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bLYFJ-0002pH-3J for geb-bug-gnu-emacs@m.gmane.org; Fri, 08 Jul 2016 12:03:17 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:49229) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bLYCH-00074p-NC for bug-gnu-emacs@gnu.org; Fri, 08 Jul 2016 12:00:10 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bLYCB-0008QR-7j for bug-gnu-emacs@gnu.org; Fri, 08 Jul 2016 12:00:08 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:58742) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bLYCB-0008Q2-16 for bug-gnu-emacs@gnu.org; Fri, 08 Jul 2016 12:00:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1bLYCA-0005MV-IT for bug-gnu-emacs@gnu.org; Fri, 08 Jul 2016 12:00:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Kenneth Johansson Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 08 Jul 2016 16:00:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 23919 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.146799359120555 (code B ref -1); Fri, 08 Jul 2016 16:00:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 8 Jul 2016 15:59:51 +0000 Original-Received: from localhost ([127.0.0.1]:42846 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bLYBy-0005LT-JK for submit@debbugs.gnu.org; Fri, 08 Jul 2016 11:59:51 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:53456) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bLWHg-0000sv-48 for submit@debbugs.gnu.org; Fri, 08 Jul 2016 09:57:36 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bLWHa-0004Sp-Ac for submit@debbugs.gnu.org; Fri, 08 Jul 2016 09:57:31 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:57996) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bLWHa-0004Ry-77 for submit@debbugs.gnu.org; Fri, 08 Jul 2016 09:57:30 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:44388) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bLWHY-0004Wg-1w for bug-gnu-emacs@gnu.org; Fri, 08 Jul 2016 09:57:28 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bLWHT-0004Ou-NJ for bug-gnu-emacs@gnu.org; Fri, 08 Jul 2016 09:57:27 -0400 Original-Received: from mail.southpole.se ([37.247.8.11]:39845) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bLWHT-0004M8-GM for bug-gnu-emacs@gnu.org; Fri, 08 Jul 2016 09:57:23 -0400 Original-Received: from [10.10.1.149] (assp.southpole.se [37.247.8.10]) by mail.southpole.se (Postfix) with ESMTPSA id B170B4414B6 for ; Fri, 8 Jul 2016 15:57:17 +0200 (CEST) Original-Received: from h217-27-188-82.cust.tyfon.se ([::ffff:217.27.188.82] helo=[10.10.1.149]) by assp.southpole.se with SMTPSA(TLSv1_2 DHE-RSA-AES256-SHA) (2.5.1); 8 Jul 2016 15:57:17 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.8.0 X-Assp-Version: 2.5.1(16177) on assp.southpole.se X-Assp-ID: assp.southpole.se 86237-10600 X-Assp-Session: 7FA886C309E0 (mail 1) X-Assp-Server-TLS: yes X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Mailman-Approved-At: Fri, 08 Jul 2016 11:59:49 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:120635 Archived-At: 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.