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#56637: 28.1.90; [FR] Allow a way around font-lock-mode being unconditionally disabled in " *hidden*" buffers Date: Sun, 24 Jul 2022 10:25:21 -0400 Message-ID: References: <874jzdhh5m.fsf@localhost> <871qug4dyk.fsf@localhost> <87wnc61x8a.fsf@localhost> 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="39709"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) Cc: 56637@debbugs.gnu.org To: Ihor Radchenko Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Jul 24 16:26:13 2022 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 1oFcYf-000A9q-1Z for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 24 Jul 2022 16:26:13 +0200 Original-Received: from localhost ([::1]:39262 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oFcYd-0000no-Id for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 24 Jul 2022 10:26:11 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:40904) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oFcYU-0000mA-KK for bug-gnu-emacs@gnu.org; Sun, 24 Jul 2022 10:26:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:58679) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oFcYU-0000z6-CB for bug-gnu-emacs@gnu.org; Sun, 24 Jul 2022 10:26:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oFcYU-00074m-7A for bug-gnu-emacs@gnu.org; Sun, 24 Jul 2022 10:26: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: Sun, 24 Jul 2022 14:26:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 56637 X-GNU-PR-Package: emacs Original-Received: via spool by 56637-submit@debbugs.gnu.org id=B56637.165867273527159 (code B ref 56637); Sun, 24 Jul 2022 14:26:02 +0000 Original-Received: (at 56637) by debbugs.gnu.org; 24 Jul 2022 14:25:35 +0000 Original-Received: from localhost ([127.0.0.1]:48428 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oFcY3-00073z-BC for submit@debbugs.gnu.org; Sun, 24 Jul 2022 10:25:35 -0400 Original-Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:53814) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oFcXy-00073f-ET for 56637@debbugs.gnu.org; Sun, 24 Jul 2022 10:25:34 -0400 Original-Received: from pmg2.iro.umontreal.ca (localhost.localdomain [127.0.0.1]) by pmg2.iro.umontreal.ca (Proxmox) with ESMTP id 9CDE9805DE; Sun, 24 Jul 2022 10:25:24 -0400 (EDT) Original-Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg2.iro.umontreal.ca (Proxmox) with ESMTP id 150918005E; Sun, 24 Jul 2022 10:25:23 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1658672723; bh=tVePghUT8LQJvObcwrVq7QTGkCKewFqpOdrE42VqQkQ=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=RM90g06xJgN7C74rhM7rpYhK2i/gvwqfhvf6MoemYB2QND8CapuXEx+GqgEjk60+n kJPLqKBsLU1+4rsmj7KL0gmYcSwiB8gJKhlqKr99gi7UAYCOatMtV6OA8wMkrmAD42 ayp5OVq7GZrzvf7dcs8Lb6QuxfY2FnqwtIqCmD7O0dJzHF8FtxLBpFiFdgnwgmt51n 8+1XyRXjwbXHVAZlP+xNrmz1+n3PCxqfF2qfPoMmw2ailKZp4BL5hpVWHNnvHa3vI1 FZjBhlX2qk0VOQM7pLT8JuL3VuLpiGMDkvfEKL1TVrSGhiSAuJdNLAsJ61I8+eXfDe w9lrzXntLFp0A== Original-Received: from pastel (unknown [45.72.195.111]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id CACBD120191; Sun, 24 Jul 2022 10:25:22 -0400 (EDT) In-Reply-To: (Ihor Radchenko's message of "Sun, 24 Jul 2022 14:47:17 +0800") 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:237838 Archived-At: Ihor Radchenko [2022-07-24 14:47:17] wrote: > Stefan Monnier writes: >>> Apart from the reddit thread I mentioned, where the problem comes from >>> web-mode directly setting font-lock-face, >> >> I didn't see a clear recipe there, tho. Setting the `font-lock-face` >> directly is normal, so it's not clear that it's a problem on the side of >> `web-mode`, really. > > When font-lock-mode is active, char-property-alias-alist contains > '(face font-lock-face). Yes, I know, but it would really help to see a concrete case where that makes a difference, because there are various ways to "fix" this problem. They all have upsides and downsides. > Unless we can forever rely on the implementation detail that > 'font-lock-face is always equivalent to the 'face property, It's not really "equivalent", but more importantly it's not an implementation detail: it's documented in the ELisp manual. Stefan