From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Luke Lee Newsgroups: gmane.emacs.devel Subject: Re: master 87e7390: * lisp/progmodes/hideif.el: update for new C++ standards and extensions Date: Thu, 03 Jun 2021 11:38:43 +0800 Message-ID: <877djbty64.fsf@lukehome> References: <20210602123045.16251.72470@vcs0.savannah.gnu.org> <20210602123047.2969E209AA@vcs0.savannah.gnu.org> <87lf7sguqd.fsf@tcd.ie> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="17725"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux) Cc: "Basil L. Contovounesios" , emacs-devel To: Zhiwei Chen Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Thu Jun 03 05:39:24 2021 Return-path: Envelope-to: ged-emacs-devel@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 1loeCZ-0004Pk-Q4 for ged-emacs-devel@m.gmane-mx.org; Thu, 03 Jun 2021 05:39:23 +0200 Original-Received: from localhost ([::1]:37724 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1loeCY-0004b2-Sl for ged-emacs-devel@m.gmane-mx.org; Wed, 02 Jun 2021 23:39:22 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:51042) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1loeC4-0003vr-2c for emacs-devel@gnu.org; Wed, 02 Jun 2021 23:38:52 -0400 Original-Received: from mail-pl1-x62c.google.com ([2607:f8b0:4864:20::62c]:46757) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1loeC0-0000ly-1h for emacs-devel@gnu.org; Wed, 02 Jun 2021 23:38:51 -0400 Original-Received: by mail-pl1-x62c.google.com with SMTP id e1so2163999pld.13 for ; Wed, 02 Jun 2021 20:38:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-transfer-encoding; bh=fDNF1lfJi3LYglZSW+P8Cyl4BAmvqgAXYiFtaZBFGT8=; b=Oh4VEDHm1rCT/l3KjPNO4S5sfHXutPPYeN9at9xSVvVUJ3t/e11WwJGT6dvZFCF50K jJJS4+gQl2TAXrLWCBGDlBhEvyAzCaIODF79lAN857WxWC8yUw4Tjyp6imxTs6p0rOHs k+UkwRI+vmR2aKUYQPaBWsNeg6FPt3xbZ/Aiana1l2+JjS3i480M2+zWy0cQgkOZk9SB CPOMW8SfjM8W8Uwhm4ollC0LQOktvJZoFRXvuoC+w7xFHLJz/YcG/7JYeaM/8WZ3QDMQ DO7ElWd06zi35R9xAh2cYxYsac7Ti2mPsMXOwmyoHmp1Upjx12Z4co/4NLxQaa1PbMpk 5FmA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version:content-transfer-encoding; bh=fDNF1lfJi3LYglZSW+P8Cyl4BAmvqgAXYiFtaZBFGT8=; b=VL6kaVFqznyTdrwEGaDViX7Qnwg+66R6D9mWTizZQ0Jla+yN3sgCkB9EdXUjOaTB+N fEmqfPTUmqLM+bdVlfRbsWTdGhQcuSCZJwehzwcHLt3DPj1lgB4FgssoNXet+PBCHQmj QuGOma7JMoBVuA3HxIh39y6jnewov53uvHVCR2zibwV3bBeDez8xEFyt7bhwNE58e4ld i6Gyw3x6tOoH6EVEMjIOgJkCbvBvByHks01ylEXsZw9iGK5hfyXuHgeSRXVrWctw36uN uYiyhnXxapjD090wUA81aLfrJlXyN5czLKH/6F/5GfXybPlKZW+RxMnwOanvbRjLlrJQ dYsg== X-Gm-Message-State: AOAM5323dvUahpJ7/i6aSf2ZwkWP3QqJTm4Ozv3vz2H61VKUYA3EysVg eglyyUc3y5KLXB3H6kT5a2asDyJUDv14Eg== X-Google-Smtp-Source: ABdhPJxNL/5kHUqvEDEl0mJ56YonM7ehHqBnsAC2/W2yq2u7a2B0HB97L5pPX9Fx1cJOA7PJVC/aGA== X-Received: by 2002:a17:90a:9f02:: with SMTP id n2mr8948230pjp.190.1622691526207; Wed, 02 Jun 2021 20:38:46 -0700 (PDT) Original-Received: from lukehome (2001-b011-3815-56eb-30d9-cafd-0b28-59c2.dynamic-ip6.hinet.net. [2001:b011:3815:56eb:30d9:cafd:b28:59c2]) by smtp.gmail.com with ESMTPSA id o16sm807367pfu.75.2021.06.02.20.38.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 02 Jun 2021 20:38:45 -0700 (PDT) In-Reply-To: (Zhiwei Chen's message of "Thu, 3 Jun 2021 02:50:34 +0000") Received-SPF: pass client-ip=2607:f8b0:4864:20::62c; envelope-from=luke.yx.lee@gmail.com; helo=mail-pl1-x62c.google.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, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:270333 Archived-At: > hide-if still needs user to `hide-ifdef-define=E2=80=99 manually, could w= e use > `lsp-mode=E2=80=99 to describe the macro to choose whether to hide or not? Personally I never use `hide-ifdef-define', it's what it originally was so I kept it. I only use `hide-ifdefs' and EmacsSession to save/restore `hide-ifdef-env' as I described long ago in EmacsWiki https://www.emacswiki.org/emacs/HideIfDef (haven't got time to update it yet). Plus the newly described method in the comment of the beginning of hideif.el: [...] ;; $ gcc -dM -E hello.c -o hello.hh [...] Then I open the hello.hh and `hide-ifdefs' it. With EmacsSession I only need to do that once. Next time when I launch Emacs it will automatically bring back my earlier defines. As EmacsSession is not standard thus I didn't mention that in the hideif.el comment. I am sure there are now some other packages able to save/restore the global `hide-ifdef-env'. Hope this helps. Best regards, Luke Lee