[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#35005: 27.0.50; Fontification unexpectedly works with anonymous face
From: |
Markus Triska |
Subject: |
bug#35005: 27.0.50; Fontification unexpectedly works with anonymous faces |
Date: |
Sat, 09 Nov 2019 18:43:11 +0100 |
User-agent: |
Emacs/26.1 |
Lars Ingebrigtsen <larsi@gnus.org> 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 “face” to refer only to named faces.", the 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
- bug#35005: 27.0.50; Fontification unexpectedly works with anonymous faces, Lars Ingebrigtsen, 2019/11/01
- bug#35005: 27.0.50; Fontification unexpectedly works with anonymous faces, Markus Triska, 2019/11/02
- bug#35005: 27.0.50; Fontification unexpectedly works with anonymous faces, Lars Ingebrigtsen, 2019/11/02
- bug#35005: 27.0.50; Fontification unexpectedly works with anonymous faces,
Markus Triska <=
- bug#35005: 27.0.50; Fontification unexpectedly works with anonymous faces, Stefan Monnier, 2019/11/09
- bug#35005: 27.0.50; Fontification unexpectedly works with anonymous faces, Lars Ingebrigtsen, 2019/11/09
- bug#35005: 27.0.50; Fontification unexpectedly works with anonymous faces, Markus Triska, 2019/11/09
- bug#35005: 27.0.50; Fontification unexpectedly works with anonymous faces, Stefan Monnier, 2019/11/09
- bug#35005: 27.0.50; Fontification unexpectedly works with anonymous faces, Markus Triska, 2019/11/09
- bug#35005: 27.0.50; Fontification unexpectedly works with anonymous faces, Eli Zaretskii, 2019/11/14
- bug#35005: 27.0.50; Fontification unexpectedly works with anonymous faces, Drew Adams, 2019/11/09