From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Monnier via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#48752: 28.0.50; Feature request: Hook hide-ifdef into font-lock Date: Mon, 31 May 2021 11:44:01 -0400 Message-ID: References: <20210530202606.qlopn6lmwzfa75z5.ref@Ergus> <20210530202606.qlopn6lmwzfa75z5@Ergus> <83eedn2jtl.fsf@gnu.org> Reply-To: Stefan Monnier Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="15074"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: 48752@debbugs.gnu.org, Ergus To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon May 31 17:46:03 2021 Return-path: Envelope-to: geb-bug-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 1lnk79-0003i1-LF for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 31 May 2021 17:46:03 +0200 Original-Received: from localhost ([::1]:52022 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lnk78-0007pd-IX for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 31 May 2021 11:46:02 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:36314) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lnk6A-0007pH-FQ for bug-gnu-emacs@gnu.org; Mon, 31 May 2021 11:45:05 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:51363) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lnk6A-0008TX-6S for bug-gnu-emacs@gnu.org; Mon, 31 May 2021 11:45:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lnk6A-000601-30 for bug-gnu-emacs@gnu.org; Mon, 31 May 2021 11:45:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 31 May 2021 15:45:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 48752 X-GNU-PR-Package: emacs Original-Received: via spool by 48752-submit@debbugs.gnu.org id=B48752.162247585222994 (code B ref 48752); Mon, 31 May 2021 15:45:02 +0000 Original-Received: (at 48752) by debbugs.gnu.org; 31 May 2021 15:44:12 +0000 Original-Received: from localhost ([127.0.0.1]:34676 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lnk5M-0005yo-Cn for submit@debbugs.gnu.org; Mon, 31 May 2021 11:44:12 -0400 Original-Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:30051) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lnk5J-0005yZ-3v for 48752@debbugs.gnu.org; Mon, 31 May 2021 11:44:11 -0400 Original-Received: from pmg2.iro.umontreal.ca (localhost.localdomain [127.0.0.1]) by pmg2.iro.umontreal.ca (Proxmox) with ESMTP id 7FD5D8074B; Mon, 31 May 2021 11:44:03 -0400 (EDT) Original-Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg2.iro.umontreal.ca (Proxmox) with ESMTP id 3B8EC8009E; Mon, 31 May 2021 11:44:02 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1622475842; bh=O0PiK80xHUmlv6BpwdOWp8d43YMpJHAqNP5MrcuaSn4=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=ah7+AaabmnnM3E7BxC8F7QYpUbwjTCFt9TRVpn/v5SmsGUqV0emRNRiZ5dBNqPMCg VVrMBOF0uDPs/RxAgPTUkKdk0U6I67AEiY38EEGRQkdxtSuGG3usFPD1dT6W3UZZu5 sl/hzi+M6CxRsGZN2ZNal0F4xv21mhWpASMVxJBSnxf8H0VPK+L+p0ruJajhGPv63s v6X+zmagS4RNd2kYeZtsGFD29mgRYxGErccxZzFfjTcDluSx7+6NhyJWG0Xm+JH9dz c/g43FiBqS4Hh625bbiF0uZTdSG0qbaHqC9VZYRBFNAkn0cd8MdUtHgEB7+JsbQwac ZHfCV7fXPAVBw== Original-Received: from alfajor (69-196-163-239.dsl.teksavvy.com [69.196.163.239]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id 0C70E12100F; Mon, 31 May 2021 11:44:02 -0400 (EDT) In-Reply-To: <83eedn2jtl.fsf@gnu.org> (Eli Zaretskii's message of "Mon, 31 May 2021 15:01:42 +0300") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:207709 Archived-At: > As mentioned on emacs-devel, how exactly to automate this should be > carefully thought-out, because blindly using the JIT font-lock > mechanism will cause code blocks to appear and disappear several time > as long as the user types the preprocessor directive. When the code is actually made invisible the appear/disappear could be quite annoying, indeed, but I think Ergus is mostly concerned about the case where `hide-ifdef-shadow` is activated, where it would make sense to make it behave like comments and strings, I think. Stefan