From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Markus Triska Newsgroups: gmane.emacs.bugs Subject: bug#35005: 27.0.50; Fontification unexpectedly works with anonymous faces Date: Sat, 09 Nov 2019 18:43:11 +0100 Message-ID: <87y2wpndxs.fsf__37274.4096721121$1573321464$gmane$org@metalevel.at> References: <83r2arj7rv.fsf@gnu.org> <87o8xw6d61.fsf@gnus.org> <871rur4u4j.fsf@gnus.org> <87sgn6abjw.fsf@metalevel.at> <87mudee2pk.fsf@gnus.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="260508"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Emacs/26.1 Cc: Stefan Monnier , 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 Sat Nov 09 18:44:18 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 1iTUmW-0015ar-IL for geb-bug-gnu-emacs@m.gmane.org; Sat, 09 Nov 2019 18:44:16 +0100 Original-Received: from localhost ([::1]:38266 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iTUmV-0005yh-16 for geb-bug-gnu-emacs@m.gmane.org; Sat, 09 Nov 2019 12:44:15 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:59497) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iTUmK-0005vH-V8 for bug-gnu-emacs@gnu.org; Sat, 09 Nov 2019 12:44:06 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iTUmJ-00042r-RA for bug-gnu-emacs@gnu.org; Sat, 09 Nov 2019 12:44:04 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:41410) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iTUmJ-00042l-OT for bug-gnu-emacs@gnu.org; Sat, 09 Nov 2019 12:44:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1iTUmH-00011a-Q3 for bug-gnu-emacs@gnu.org; Sat, 09 Nov 2019 12:44:03 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Markus Triska Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 09 Nov 2019 17:44:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 35005 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: fixed Original-Received: via spool by 35005-submit@debbugs.gnu.org id=B35005.15733213943874 (code B ref 35005); Sat, 09 Nov 2019 17:44:01 +0000 Original-Received: (at 35005) by debbugs.gnu.org; 9 Nov 2019 17:43:14 +0000 Original-Received: from localhost ([127.0.0.1]:50231 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iTUlW-00010Q-G9 for submit@debbugs.gnu.org; Sat, 09 Nov 2019 12:43:14 -0500 Original-Received: from metalevel.at ([185.194.236.120]:40328) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iTUlU-00010I-H6 for 35005@debbugs.gnu.org; Sat, 09 Nov 2019 12:43:13 -0500 Original-Received: by metalevel.at (Postfix, from userid 1000) id 60E00727AB; Sat, 9 Nov 2019 18:43:11 +0100 (CET) In-Reply-To: <87mudee2pk.fsf@gnus.org> (Lars Ingebrigtsen's message of "Sat, 02 Nov 2019 16:07:51 +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:171337 Archived-At: Lars Ingebrigtsen writes: > It just mentions one example where named faces are required, and I think > the reader will take from that that Emacs will document when you can't > use anonymous faces. Since font locking doesn't say anything about > that, then the natural interpretation is that font locking doesn't > require named faces. Please consider specifically the documentation of the function font-lock-add-keywords that I used in the example. Its documentation points to that of font-lock-keywords, which contains the description: FACENAME is an expression whose value is the face name to use. Instead of a face, FACENAME can evaluate to a property list of the form (face FACE PROP1 VAL1 PROP2 VAL2 ...) in which case all the listed text-properties will be set rather than just FACE. This currently states that a face name is expected. Since the Elisp documentation also states: "Unless otherwise stated, we will use the term =E2=80=9Cface=E2=80=9D to refer only to named faces.", th= e notion of "face" in the description above also does not include anonymous faces. Would it work to mention that "face FACE" can also be omitted, i.e., that an anonymous face can also be specified here? Thank you and all the best, Markus