[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: how to track down "invalid face attribute" errors?
From: |
Robert Pluim |
Subject: |
Re: how to track down "invalid face attribute" errors? |
Date: |
Wed, 28 Sep 2022 17:04:12 +0200 |
>>>>> On Wed, 28 Sep 2022 07:41:38 -0400, Stefan Monnier via Users list for the
>>>>> GNU Emacs text editor <help-gnu-emacs@gnu.org> said:
Stefan> Emanuel Berg [2022-09-25 15:00:31] wrote:
>> Sounds like that error message should be changed to include
>> what face causes trouble, if possible?
Stefan> IIUC this message comes when the face is not a symbol but a plist of
Stefan> properties, so there's a good chance that printing the face will
just
Stefan> say (:foreground nil) and thus won't help you. A better option
might be
Stefan> to include the position of the problem, so you can then go and
Stefan> investigate the text properties and overlays at that position.
Yes, (:foreground nil) is what you get. And by the time the log is
produced in `merge_face_ref', thereʼs no trace left of the position
weʼre looking at.
Robert
--