emacs-devel
[Top][All Lists]
Advanced

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

Re: "Invalid face reference" msg logged to *Messages* (but no error)


From: Stefan Monnier
Subject: Re: "Invalid face reference" msg logged to *Messages* (but no error)
Date: Tue, 05 May 2009 21:25:21 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.93 (gnu/linux)

> (add-text-properties 99 111 (face (quote some-face)))

This code isn't correct, because it calls `face' as a function.
So I guess you mean

   (add-text-properties 99 111 '(face (quote some-face)))

in which case the fix is to use

   (add-text-properties 99 111 '(face some-face))

aka

   (put-text-property 99 111 'face 'some-face)

> N is incremented thereafter, with seemingly each event.  My guess is
> that it is redisplay that is logging/updating the message - it doesn't
> seem to be related to the code being evaluated.  The add-text-property
> call seems only to be what initiates it.

Yes, the message comes from redisplay.


        Stefan




reply via email to

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