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: Thu, 06 Oct 2022 16:58:57 +0200 Message-ID: <87wn9dxaku.fsf@sperrhaken.name> References: <87k05rr79k.fsf@ucl.ac.uk> <87czbjpq1c.fsf@dataswamp.org> <87v8pawlpy.fsf@ucl.ac.uk> <87sfkea2yw.fsf@gmail.com> <87r0zxm5pv.fsf@sperrhaken.name> <87ill89ag4.fsf@gmail.com> <87a66acuyj.fsf@sperrhaken.name> <834jwitm3s.fsf@gnu.org> 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="6623"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.1 (gnu/linux) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Thu Oct 06 17:01:28 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 1ogSNM-0001bd-ID for geh-help-gnu-emacs@m.gmane-mx.org; Thu, 06 Oct 2022 17:01:28 +0200 Original-Received: from localhost ([::1]:54766 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ogSNL-00023y-IC for geh-help-gnu-emacs@m.gmane-mx.org; Thu, 06 Oct 2022 11:01:27 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:48526) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ogSLJ-00022i-Qo for help-gnu-emacs@gnu.org; Thu, 06 Oct 2022 10:59:23 -0400 Original-Received: from mout.kundenserver.de ([212.227.17.10]:51997) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ogSL9-0002Rl-JR for help-gnu-emacs@gnu.org; Thu, 06 Oct 2022 10:59:21 -0400 Original-Received: from localhost ([77.11.172.120]) by mrelayeu.kundenserver.de (mreue108 [212.227.15.183]) with ESMTPSA (Nemesis) id 1MkpnF-1p362D3UUB-00mI3y for ; Thu, 06 Oct 2022 16:59:02 +0200 In-Reply-To: <834jwitm3s.fsf@gnu.org> (Eli Zaretskii's message of "Wed, 05 Oct 2022 16:51:19 +0300") X-Provags-ID: V03:K1:phziK82IxXVhLJUbnuqL2W+n/VWXE5plA72m7SQFm6gsaJYWzfS wiB/wcc5Epy4g14mzQgWP04pUIQnPPECxQBdrZFqDCDf3+1R0OG7yKGlP/x7SL6Mm+HZBe3 +evDdwAlSErNgWzXOcGiErwyZefpTmfLhyl2R1ohmXl64erdqOw6nPW67Fo2mZCoExYLQRI pzuqbH9u9Z5kGuyEFLuww== X-UI-Out-Filterresults: notjunk:1;V03:K0:vaVUUzlM2zA=:p5cLDJuqIUw/pVoux34U9t Moo5WHqKlfhioQPNJ+Y2jl0b4N7k2ET/35P06C+psEa0ugc9zANjz56Vv20cBBikP7qEIJQ5V dz48rxgTCbmWb7kj6sPnsZzVZVnHSJ2/yU14ZV1HvKf3uiB6F0G/rKM4+nMxsmGzPj2o1YPVO yWV+HW9leebf2JTiDTroLR8SvFKXbIaV7SQFReroFNQz56Ds2wZFK3xjJnSy74+3IwHongt8y zHdhCu6nU08Rms8+JcpF8UYbr8mF60N9Qq+ef3NhZEYvnUjx4zInf77cj4/wLdpROcCNpYOmd aj9P8cnQq3f0l75nr3DV8bRDM9AkJLFqWQ/tUrBjHga21TPwCmpdsInQ1Rca9fUzW5z2en9QR XkoW9xEaBYVcefoyQOQFVJTWJ/tPGwUZyhPFuZE6bP4oIpAq2men2oUM3e6hi0IyyhbOpuPr/ ojA5HCF9Ew97UQ5RxHCatw/H8FzVryFkleqoJ5OduKFRFfn/JRRdg0pqJeo1Xkjf5ABbRyrpi wbbLNskl+bSHT5lrKI3OBTxug7mBDVjab1Q4iPVQcIQoTFW1DDhRr/6WUyCEZn37sPoHWmKeO Jd7RktRq6Vl3eq+jaOYGrHt8i0AjPtDPFfxzCwesDg9RahCxHPiJDhSk1PuXWlU5Gel2PecJE E+Ap1qvDpSOa+1osLf6w9TUn7yahhN4Gj0gejtrE+pWAYS2z0pRdJYM54CH4jNEJoHcujANSn jSkzBMjX249CvxTzW/UnVOHa571Ec8fJrbSJaAEU57QaxxkYLYSDU69c9ral21kPbdkSkTjY Received-SPF: none client-ip=212.227.17.10; 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:139735 Archived-At: Eli Zaretskii writes: > Face merging has nothing to do with point, it just considers the face > attributes. The commentary to merge_face_ref says how the window > pointer is used: Robert Pluim writes: > We=CA=BCre not necessarily examining the faces of the character at (point= ), > we=CA=BCre going through redisplay of the buffer, I thought? Uh, I blundered there in my examination and my thinking: when I ran Emacs in a debugger with a breakpoint on =E2=80=9Cxfaces.c:merge_face_ref= =E2=80=9D, the breakpoint was hit when I moved the cursor into or out of a position with text that had an invalid property, and I made, from a position of lacking understanding, a wrong assumption. Thanks to you two for clearing that up. > If you want to understand what that filtering is about, look at > filter_face_ref, where you will clearly see that it never accesses the > window's buffer or its point. > > So when this function is called, there's no reason to believe that the > buffer position of point has anything to do with the offending face. > The most frequent face merging is performed by redisplay, which > doesn't move point and doesn't make the window on whose display it is > working the selected window. Thank you for the clarification. >> Anyway, perhaps, if there is any interest in adding information to the >> =E2=80=9CInvalid face attribute=E2=80=9D log message, further discussion= should move to >> a wishlist bug report? > > Definitely. This discussion doesn't belong to the help list. The bug report can be found here: bug#58312 --=20 Felix Dietrich