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: cc-mode and hide-ifdef issue Date: Thu, 27 May 2021 04:45:31 +0200 Message-ID: <20210527024531.ismvqhcwbidlfjyz@Ergus> References: <20210527024531.ismvqhcwbidlfjyz.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="5821"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Help Gnu Emacs To: pauline-galea@gmx.com Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Thu May 27 04:46:26 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 1lm62U-0001QX-HP for geh-help-gnu-emacs@m.gmane-mx.org; Thu, 27 May 2021 04:46:26 +0200 Original-Received: from localhost ([::1]:51624 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lm62T-0005A7-ET for geh-help-gnu-emacs@m.gmane-mx.org; Wed, 26 May 2021 22:46:25 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:60112) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lm627-00059z-0g for help-gnu-emacs@gnu.org; Wed, 26 May 2021 22:46:03 -0400 Original-Received: from sonic315-14.consmr.mail.bf2.yahoo.com ([74.6.134.124]:39608) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lm623-0005A7-Vm for help-gnu-emacs@gnu.org; Wed, 26 May 2021 22:46:02 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aol.com; s=a2048; t=1622083557; bh=O3fDAir+qu92MOMhLgnqQpbQg5uABypR6MPMyYfv8p8=; h=Date:From:To:Cc:Subject:References:From:Subject:Reply-To; b=XW3AESRXIqTIuAzeSLxjWbo9rrYwm1BfJ7mmfAc6x0honiixIJ1KenKKz3w0MUV8SZkT3LnLaRast/dKS405WdgDPnfP4PCNu94u/8iRufHfeQmpZqIZEjO75OWkmrI7cRFEmOpz3lGe5UksPl/jEabH/QOBUbTGjL138IePeXotPj+e0AOxZ5f27jD7Uryb4pohK0XREI+mG7lk0L7wGZ7CtMKfw5MzDco9RNxZMAKLcevYD4OKfgEh4w/bW2/nZGYD4QNF+wygSAFm3EN5Fqz9SbvA/dvJatHrBVG/UuHGxFee8MmdHC0yZ3USy3OYR0LA/0I24RLsFGkwi5Wisw== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1622083557; bh=ko5a59XnnbYenHS1Cct8SgWMAfqI/XT7yZt3f6zL3J2=; h=X-Sonic-MF:Date:From:To:Subject:From:Subject; b=V8AKRV8wsW40+xUs1AtAC/pnITQ1D2i2Jyi72ERjfhX3k+ZF1A6oBDHZRNlgo1y98a2yyafUqejILpYGuLonm4V6kigLmt35SHIZfz+ztepH+ro0JN1c9tAZiagui3A4MkV+2OVR9Aw19abYj5KPHGLZue4PWUN54ZJLg15lv15V6gSpayQl3NDZMRsBUlb1lF68N+g1ujW9ch+h8SPvmljeFsYnJTvMGpInqKUS5D+qVItfXZYungR5h8OCcZVUrFYJqHYfDxkq93lK+FbnuDfiAeJUDteZYvu3PMMGAfX3y4Jup/zAGRNWo+u1Gahvf+pKqziamk/Bk65cXRIRow== X-YMail-OSG: sH.NxFQVM1kMwOhbivaEodkQIrJ6CJEgoO1jagS5aRE1uUPSh7VXf5vsosbeDEV 36sfO0R84RDQrkDQrb1xCNyTLBetmyJqcQJ.F9INeWbSCemOR0mNfylLpsS9yLFJOJNiYhWLbm9r lI75lKmKUNG0NHaj1WyLymxm1FvIoVdnET0862EH.r9rHtF2XwnErw2iTdwx21TUHCO3et_p4fbD sNr6l.kgk4MHeqI4GDjqKOknUEJVqzEp63NQCXBWCcaSGncx18c6CgmIXlf9w5grdO3WAiz4ZiBs JqIx.4QxSdH1xZnw0wyWqtJmi_5SkD8RWEziIO7fYWfxno7cnYXAecAIuUI3WYlFttReCgn_X3QY UpL7.Uowzkaj8tzrdddPtGPtVsN.RV.oTyBISbpReafSKzR4OXSdDmiL_Y9GkJTAQlYls8dPFVpm qhk5Fqs8.BSU2BsEyYIh0gz2Z4EVzJvVj4hR1FMbdwaEp9ala_0X7cq6bxzfNBOjfA56AVmIriih HgsMHFJn1vtHCvopqC7DtonCv5_pC5xwrhtKQJdC1Ty3FBtm3F6SiT9l6GPSDMCP6t3y9Qe4VRWS LNcNLWJvC.t1BWkFfzMpjWYUtI4aUHaYnPYHSqxRZO53LIc26q1Vrr5R8WxpsDioTUaTy4hB0jl8 YKIxTP6Vpi_laFj0_xHdyE6AA0iNSpVv.vuYTLx281Pl4HKdUx_44ppomKXbu1DiIgNplVkSfpi9 WW90M0IYS25TBcqZ5Xad0umpPT8AOwaTvFkZJbVHq5Mf5zzD893X4bxgQ0g0oZzxyh68dPGk63ki Bc_zXZYOG9kRRqn2S3nHBcXCg0U9hXSpKBEba45mLm X-Sonic-MF: Original-Received: from sonic.gate.mail.ne1.yahoo.com by sonic315.consmr.mail.bf2.yahoo.com with HTTP; Thu, 27 May 2021 02:45:57 +0000 Original-Received: by kubenode519.mail-prod1.omega.ir2.yahoo.com (VZM Hermes SMTP Server) with ESMTPA ID a3bef64358e2a70281c0906ad11c2e75; Thu, 27 May 2021 02:45:52 +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.134.124; envelope-from=spacibba@aol.com; helo=sonic315-14.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:130249 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?