From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Felix Dietrich Newsgroups: gmane.emacs.help Subject: Re: how to track down "invalid face attribute" errors? Date: Sun, 25 Sep 2022 16:26:15 +0200 Message-ID: <87edvzbke0.fsf@sperrhaken.name> References: <87k05rr79k.fsf@ucl.ac.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="21388"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.1 (gnu/linux) Cc: help-gnu-emacs@gnu.org To: Eric S Fraga Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Sun Sep 25 16:27:21 2022 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ocSbI-0005QX-VI for geh-help-gnu-emacs@m.gmane-mx.org; Sun, 25 Sep 2022 16:27:20 +0200 Original-Received: from localhost ([::1]:42398 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ocSbI-0003aW-1R for geh-help-gnu-emacs@m.gmane-mx.org; Sun, 25 Sep 2022 10:27:20 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:41742) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ocSaR-0003aM-VC for help-gnu-emacs@gnu.org; Sun, 25 Sep 2022 10:26:27 -0400 Original-Received: from mout.kundenserver.de ([212.227.17.24]:51319) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ocSaQ-0006sS-4O for help-gnu-emacs@gnu.org; Sun, 25 Sep 2022 10:26:27 -0400 Original-Received: from localhost ([77.13.73.74]) by mrelayeu.kundenserver.de (mreue107 [212.227.15.183]) with ESMTPSA (Nemesis) id 1Mn1iT-1p4srB36qF-00k3nU; Sun, 25 Sep 2022 16:26:22 +0200 In-Reply-To: <87k05rr79k.fsf@ucl.ac.uk> (Eric S. Fraga's message of "Sun, 25 Sep 2022 13:03:03 +0100") X-Provags-ID: V03:K1:XrF2ksL6//lsodoQ7397TqQZ9g0bSd3Vore2D6+dM3M0+XNqoil eVy1SYUSMgDkXVu9s55qXXaMkw1Gi9ZYZnM2b+buHi1ZbBVHbX1XY9AOI+EIBcgZfrbu6P1 D3gwHdqpQPUfV2LcmJNhFG5Qg+Zp3Z2vuZdDoe+d30iFBPknrpX6R45QHgyF1m/c0McbxqC xvSgwvhL3pLI6zz7Vv+6w== X-UI-Out-Filterresults: notjunk:1;V03:K0:TyljzWpGNvA=:Z1i+clO7e4gz6kdIC+rm2K bzc0xCmCRuMXt5gSzLO69psA0DEmcLCTfSD+XI9IIal/b3T4I9pKslOIn5KUrenFdGuC3BQm4 AHqViqjhlJsNFwUSeYlbRLMEJHafKGi4agjimgeuGKVhfd1+p0eBEcelPz5DW3mII3d0UOSsT PiG54+gFGkeL7Hvp4MEAsYyvsHwimev0D48i9hkPDfSzG1/kpqrlCYtcZaVS28CtTpi3kcJGB TwnxwOEd86/4NGc/m7qcKb+rsqS2gc4tKwJViHiIFrqVYpEUv5C1gm6kEFIdk/NrSQE+SaNi/ Nnx5M0XEF1E3edxHDG5fJ0CQ2a9WYaCF76BfW+BAFEgRMOrOELRM5ICYydo8KHS1agTOWC5hA UjoNBlaqHMb4fHnd/WSb3/lOFIOFLKd7vtMOzuWJI+/bspRmhwriwSpqHXGdtZ5SBxN55UP2h HbIT0vrsY6E9riMjY1ng9VrLybmTrfPyt97+mlYLMicp0s2cC6q9eqsQbGwrE4iuUw6kumwt+ ql/IEl3UJTbxEseFzq0W2C43rSroeVhlR1s0cMeyaKtusJb4n0TE3F/O5K03Gen8VDhk6UCpm Rlq2JLo3tF5wY3DZw7wd27Fzp0Gj47WscM92FAZLOnYtbAiaav4s2NTvphtmxLJqXWzVEDvu8 +uCoc7bXa7syBRQRD4EgSZOkXcSMo/V4AxWOmPzYeeYVrlFg0pIPqP5Xn/6hOM2msUeA4/Br8 QEXE13Zr66INL1OuZXcgPAAKRDAkqLDFUN3ye0k53V0GMTHnMJG5iEFulXPZoym6uC/UidjL Received-SPF: none client-ip=212.227.17.24; envelope-from=felix.dietrich@sperrhaken.name; helo=mout.kundenserver.de X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_NONE=0.001, SPF_NONE=0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.io gmane.emacs.help:139626 Archived-At: Hi Eric, Eric S Fraga writes: > some package I'm using is leading to errors of the form > > Invalid face attribute :foreground nil [54 times] > > can anybody suggest how I can track down which package/function is > causing this? Debugging on error doesn't catch this. I am just going to brainstorm some ideas here: 1. Go through every buffer and check for every buffer position whether any anonymous face set in a text property or overlay property has a :foreground attribute that is nil. This might give you an idea about which packages could be responsible. I do not have code for that, but could probably concoct something. 2. Grep through your configuration and your installed packages for ":foreground" and see if it is paired with nil somewhere. One of the various functions to add text properties [1] or =E2=80=98overlay-put=E2=80= =99 should be close by. 3. Deactivate groups of packages and see what happens. Might be a bit to tedious and error prone if you have a lot installed and need to manage their shared dependencies. 4. A bit of a harebrained sledgehammer approach (which might lead nowhere): run Emacs in a debugger, set a watchpoint on =E2=80=98add_to_log= =E2=80=99 being called with a =E2=80=98format=E2=80=99 argument starting with "Invali= d face attribute", then, on break, analyse the stack, and see if you can figure out the culprit. Footnotes: [1] (info "(elisp) Changing Properties") --=20 Felix Dietrich