From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Ergus Newsgroups: gmane.emacs.help Subject: Issue with hide-ifdef and cc-mode Date: Thu, 27 May 2021 05:06:30 +0200 Message-ID: <20210527030630.ys6pbkbtqui66iuz@Ergus> References: <20210527030630.ys6pbkbtqui66iuz.ref@Ergus> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="22907"; mail-complaints-to="usenet@ciao.gmane.io" To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Thu May 27 05:07:25 2021 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lm6Mm-0005qq-Tu for geh-help-gnu-emacs@m.gmane-mx.org; Thu, 27 May 2021 05:07:25 +0200 Original-Received: from localhost ([::1]:57434 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lm6Ml-0001eI-WF for geh-help-gnu-emacs@m.gmane-mx.org; Wed, 26 May 2021 23:07:24 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:35186) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lm6MN-0001dv-Fk for help-gnu-emacs@gnu.org; Wed, 26 May 2021 23:06:59 -0400 Original-Received: from sonic314-15.consmr.mail.bf2.yahoo.com ([74.6.132.125]:35493) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lm6ML-0005O3-1Q for help-gnu-emacs@gnu.org; Wed, 26 May 2021 23:06:59 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aol.com; s=a2048; t=1622084815; bh=O3fDAir+qu92MOMhLgnqQpbQg5uABypR6MPMyYfv8p8=; h=Date:From:To:Subject:References:From:Subject:Reply-To; b=WPNjkym7gmF5nVWNsQBpCamtzOJIFi4OwdZAhskl0U3NMbOJatywEuyLMxLAjxctFfTS3F/IqB6xU8InGYws/u6K8YPlWq1NsnhmlqCdIZ8dKFsslma0TZ2Pmh7MnNaX74WigqTh8ojmKn/Sec1iHrqL3+XYr452zrsL8KCCwYfBW2aAXCp6Nzefi+Yl69irIPQXL8YSzC/crKoOfSvOxguH4MHk3A/G99yO7Tg+ZcVSH62WUZx0yyiG1ZHMlK0CiYuemMwIdVZr49WQnjBM+DLVn90F9Okg3s0VTxCgTTFt4ILFQXtlTz0p9sWFMUK0Q5Wv12XtTd1fgnpWNWg5SA== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1622084815; bh=cbEoaW3HoQyuSlROTMACGxAFokBRHCSMwq4o1S8n9ZC=; h=X-Sonic-MF:Date:From:To:Subject:From:Subject; b=DAlgyS3NPuYHHz+qn7UON8wLuG4KjKDaCGCVIOlDrNv/92l0c6vCNjEi/+RRbt0QsMkJFYoAAxVi7HaJ/QZHb2US2Rxz92+ibBUfztMPaj9nSrpFH/9UlSOOY0vaUO4rd8IiwZVW/F93EYiMgU51RENcDQZs0vxKQIJRDu1LMrZkc5OSFYij3rk9tta3cHIAM4psQNCGh19nNOOlIZA+y0Q3v3phxgyXozilpRv7e0NSiBrkZ/dv+xUl6WiIPylnpgaNUQ1b9iHb6lZdq71HvfDv5YrMDooF/G3+QSqEm8y50PGhwsz0oqnY3Ev/nTklqwQkXXCLx5Yc20D9Wjwokg== X-YMail-OSG: poN8C7AVM1ncxpkq_t8C3QPBj9dozC9kxvFUSz9k3W9wwfu6cQU8k0SBERzYqut nHZ4B8YZDO20PIbWbcvmu.iNib4QwPL_WNGfTyqzOwzO4vn8ylZ9_neYFt.sSu14g5Shio5AlP9L 4Nnn_DHbl5_ehSHJA1VODMhzl2Ymzkiad4wVCIdB3045pvTJdMn7_JwKJNLpFBRuX_jArNuAEWME g8UNTTk90HK1oX5z4MkcpDg83nwoI_neJiMLgnd8srWZkl41DJva4yXTQldP14q6bX5wsLAiJ.Yt oMC4390vZi0k5_fpzp8Y0law7mARhcWgwc48PyIJk7jPVp21sWlEArrvJ5kjkKh47fZsK_.lNOdD 7fvsSCoTzlgmrgF7G9KaljFFuLEZ0Z_zoJ8iOmd8w78pvxqSrrf_wpZHO6OjO7bHuADVFOUDRXTk jMHM59oDog2P0qqnuniqbM5V0skn3HqyUR1nZilEDtJmNBAsPFy0zHtNisSMgJcf0e_0FznO.ZoG RB94YdX4pJusOWnK0qITcWP_qj_3Unw2FoNUOV5FaaHiS.jgzWl7qrOcg3yCXUn_wVq9UkNJfjX3 pci7IxarHvuYAqh4LTEZ_TqyrF4G_QDkbOLyGrD1b1pD0zeVIbQfdOIStlc3dPYAY1fJ0Bk0Pun6 .JLzCj7iFlOsmS3_d6GDvGHVVCHtDmUJ_2e0_enYT9RWmE.09j4WWFS1OFUU8AI6i0uF0FCxb7tE M.3aLWUNNloS3gsATfibDJZdTFQYs.Iyj58fhVeAcNNUsAu2pw69SmNxHd6EPh8V7fKFDr5FCFla 3bBJ9f0loARI.UydlAjD9k.DQV8aREh9p.8kA42XkZ X-Sonic-MF: Original-Received: from sonic.gate.mail.ne1.yahoo.com by sonic314.consmr.mail.bf2.yahoo.com with HTTP; Thu, 27 May 2021 03:06:55 +0000 Original-Received: by kubenode529.mail-prod1.omega.ir2.yahoo.com (VZM Hermes SMTP Server) with ESMTPA ID a1e2c0f97c8f95146481ce26c7c62dc4; Thu, 27 May 2021 03:06:51 +0000 (UTC) Content-Disposition: inline X-Mailer: WebService/1.1.18368 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.aol Received-SPF: pass client-ip=74.6.132.125; envelope-from=spacibba@aol.com; helo=sonic314-15.consmr.mail.bf2.yahoo.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.io gmane.emacs.help:130250 Archived-At: Hi: I am trying to use hide-ifdef to shadow code like: #if 0 #endif But I found that either #if 0 or #if 1 produces the same result disabling the code inside. Some slightly more complex examples like: #define var 1 #ifdef var doesn't work either (of course). And when I try hif-evaluate-macro it says things like: false <= ‘#if 1’ or 1 is not defined... Do we have anything smarter in emacs to shows #if 0 codes? O is there any extra customization or is there an issue in the package? any idea? Also when I remove the #if macros from around the code the shadow face persists. Any help?