[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Fwd: Flymake and the 'face' property

From: Johan Bockgård
Subject: Re: Fwd: Flymake and the 'face' property
Date: Tue, 29 Jan 2019 19:34:08 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux)

Eli Zaretskii <address@hidden> writes:

>> Now, flymake.el happened to be unlucky enough to store these
>> properties in the plist of a symbol which, by doubling as a face
>> symbol, already had some implementation-specific a meaning for some
>> of those properties.
> A 'face' property is documented for general use only for text, not for
> symbol plists.

The `category' feature for text/overlays uses symbol plists to define
its default properties. `face' is probably one the more common
properties to use in a category. Let's see...

...a few minutes later, I find this in rng-valid.el:

(defface rng-error '((t (:inherit font-lock-warning-face)))
(overlay-put overlay 'category 'rng-error)
(put 'rng-error 'face 'rng-error)

reply via email to

[Prev in Thread] Current Thread [Next in Thread]