From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.bugs,gmane.emacs.devel Subject: bug#35005: 27.0.50; Fontification unexpectedly works with anonymous faces Date: Thu, 31 Oct 2019 16:38:38 -0400 Message-ID: References: <83r2arj7rv.fsf@gnu.org> <87o8xw6d61.fsf@gnus.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="196342"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) Cc: Markus Triska , 35005@debbugs.gnu.org, emacs-devel@gnu.org To: Lars Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Oct 31 21:39:31 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1iQHEB-000oxB-Ku for geb-bug-gnu-emacs@m.gmane.org; Thu, 31 Oct 2019 21:39:31 +0100 Original-Received: from localhost ([::1]:53942 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iQHEA-0007v1-0j for geb-bug-gnu-emacs@m.gmane.org; Thu, 31 Oct 2019 16:39:30 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:36194) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iQHDm-0007u2-Ck for bug-gnu-emacs@gnu.org; Thu, 31 Oct 2019 16:39:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iQHDj-0002on-8n for bug-gnu-emacs@gnu.org; Thu, 31 Oct 2019 16:39:05 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:45551) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iQHDh-0002m4-Rv for bug-gnu-emacs@gnu.org; Thu, 31 Oct 2019 16:39:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1iQHDh-0001q5-Lp for bug-gnu-emacs@gnu.org; Thu, 31 Oct 2019 16:39:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 31 Oct 2019 20:39:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 35005 X-GNU-PR-Package: emacs Original-Received: via spool by 35005-submit@debbugs.gnu.org id=B35005.15725543317053 (code B ref 35005); Thu, 31 Oct 2019 20:39:01 +0000 Original-Received: (at 35005) by debbugs.gnu.org; 31 Oct 2019 20:38:51 +0000 Original-Received: from localhost ([127.0.0.1]:54372 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iQHDW-0001pe-VX for submit@debbugs.gnu.org; Thu, 31 Oct 2019 16:38:51 -0400 Original-Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:62577) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iQHDS-0001pQ-OK for 35005@debbugs.gnu.org; Thu, 31 Oct 2019 16:38:48 -0400 Original-Received: from pmg1.iro.umontreal.ca (localhost.localdomain [127.0.0.1]) by pmg1.iro.umontreal.ca (Proxmox) with ESMTP id 45C3610058D; Thu, 31 Oct 2019 16:38:41 -0400 (EDT) Original-Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg1.iro.umontreal.ca (Proxmox) with ESMTP id D0F271004C7; Thu, 31 Oct 2019 16:38:39 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1572554319; bh=FZvpeuL2P2leMziQOgNpU+FkzWHPM+Om+4MMHwVKGkk=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=MyU6YIk+DkOZeqp+1Plin02nOL2f84NYb/eJJsp0QFfqE1QLZO0ZZ4ImFZVjZDB9F hxALyPdM2553AhHYqRCvFDPRmZ03Depi8WJFv3cFXQRGGjYI2aSIdS5kfvDukzgjV9 gSQ4mi69kbzuL7eUlxMhFNweM4+KAv8qrMsJKfaryQBveEkdWY57bwK1LPJH5vU97q n0L8bRySVABv7/NqaaI0lZYC8m6iYDS9WBXAwfVNAIxsnewGIzy/JrSoQShpye75mh 6r8tcO4PeKk0gMTx0vxLGVfQpKciac/aTeKIWmrqPMth/B72B7w3W/6vyJ8nPrGq+1 bz9AyWjrGjFiQ== Original-Received: from lechazo (lechon.iro.umontreal.ca [132.204.27.242]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id 75789120786; Thu, 31 Oct 2019 16:38:39 -0400 (EDT) In-Reply-To: <87o8xw6d61.fsf@gnus.org> (Lars Ingebrigtsen's message of "Thu, 31 Oct 2019 18:24:38 +0100") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 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.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:170557 gmane.emacs.devel:241678 Archived-At: > I'm not sure whether this was ever brought up on emacs-devel? I > wondered about that restriction myself -- I could see why it might be an > issue (some parts of the font locking machinery checking for whether an > element is a list and interpreting is as something other than a face), > but it would be nice if this worked with anonymous faces. > > Does anybody know what the manual is referring to here, or whether it's > an outdated restriction that has gone away? AFAIK anonymous faces work fine in font-lock. They can be a bit more delicate to us because many places that accept faces also accept lists (either of faces or of other things) but in general there's no real restriction that I know of. So I think the "do not accept" part is not true (any more?), but it's still the case that you're generally better off using named faces when possible. Stefan