From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: =?utf-8?Q?Johan_Bockg=C3=A5rd?= Newsgroups: gmane.emacs.devel Subject: Re: Fwd: Flymake and the 'face' property Date: Tue, 29 Jan 2019 19:34:08 +0100 Message-ID: <87munj2tzz.fsf@gnu.org> References: <20190128152540.6870.46132@vcs0.savannah.gnu.org> <20190128152541.12A4D20B50@vcs0.savannah.gnu.org> <30bm401x64.fsf@fencepost.gnu.org> <83r2cw35jq.fsf@gnu.org> <83munk33gj.fsf@gnu.org> <83h8dr2yll.fsf@gnu.org> <83bm3z2vyv.fsf@gnu.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="169526"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) Cc: =?utf-8?B?Sm/Do28gVMOhdm9yYQ==?= , emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Jan 29 19:34:21 2019 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1goYDE-000hyn-MV for ged-emacs-devel@m.gmane.org; Tue, 29 Jan 2019 19:34:20 +0100 Original-Received: from localhost ([127.0.0.1]:53796 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1goYDD-0006Vu-N8 for ged-emacs-devel@m.gmane.org; Tue, 29 Jan 2019 13:34:19 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:44352) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1goYD6-0006VS-FM for emacs-devel@gnu.org; Tue, 29 Jan 2019 13:34:13 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:49100) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1goYD6-00032Y-BQ; Tue, 29 Jan 2019 13:34:12 -0500 Original-Received: from c-5bc5e455.04-211-6c6b701.bbcust.telenor.se ([85.228.197.91]:55072 helo=muon) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1goYD6-00029o-0z; Tue, 29 Jan 2019 13:34:12 -0500 In-Reply-To: <83bm3z2vyv.fsf@gnu.org> (Eli Zaretskii's message of "Tue, 29 Jan 2019 19:51:36 +0200") X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:232798 Archived-At: Eli Zaretskii 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)