From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: Fontification error backtrace [Was: Why is it so difficult to get a Lisp backtrace?] Date: Fri, 01 Jul 2022 08:39:31 +0300 Message-ID: <8335flfl2k.fsf@gnu.org> References: <87edzchi3d.fsf@gnus.org> <83sfnsadow.fsf@gnu.org> <83o7yg9f0w.fsf@gnu.org> <83r1396lvr.fsf@gnu.org> <83edz87ivz.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="36456"; mail-complaints-to="usenet@ciao.gmane.io" Cc: acm@muc.de, larsi@gnus.org, emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri Jul 01 07:43:33 2022 Return-path: Envelope-to: ged-emacs-devel@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 1o79RE-0009L6-Fp for ged-emacs-devel@m.gmane-mx.org; Fri, 01 Jul 2022 07:43:32 +0200 Original-Received: from localhost ([::1]:51414 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1o79RC-0001xl-Vu for ged-emacs-devel@m.gmane-mx.org; Fri, 01 Jul 2022 01:43:31 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:34248) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o79NS-0008IA-Pk for emacs-devel@gnu.org; Fri, 01 Jul 2022 01:39:47 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:42794) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o79NM-00070M-1w; Fri, 01 Jul 2022 01:39:35 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=mN+oFbPwfnVSpS83Pa9azJ9iKphB5jSnDOfMIiTguNw=; b=kudRZx7ATskA NXSrYlfeg/D8E5FHBDXkfuxrLCMhJ/XbpXifod1FIHQqI8OMab5YBkoeGcbkk5+FTo00CBX4+IzPX mY1UuMMDyAt4ZaLtKDou/MPmG0o85fEVPVZ0RIIJWeOyKYVRkajehzsP0dD7JeZdAD3N+IUVR82Av Tp7LwIw84owpt1Eii6zpqprXTn8vXnb22hjsdR6MRB/f01OQLMyw6zjc09zS1jor8KeqQ0RTFKbSF 6c6iHb2y5GCj7/Zl1oV+HTvzHJMXCnR6FjGidcWP+5mYEeazW4GRnnJTbTCeFD/w6Aj1LE8E8J6hL URyFNLCMCbBhxOka5lg8gw==; Original-Received: from [87.69.77.57] (port=2113 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o79NC-0003ia-SP; Fri, 01 Jul 2022 01:39:24 -0400 In-Reply-To: (message from Stefan Monnier on Thu, 30 Jun 2022 16:34:23 -0400) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 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-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:291762 Archived-At: > From: Stefan Monnier > Cc: Eli Zaretskii , larsi@gnus.org, emacs-devel@gnu.org > Date: Thu, 30 Jun 2022 16:34:23 -0400 > > BTW, in order to debug fontification errors, we also have > `jit-locak-debug-mode` which postpones the jit/font-lock execution from > within redisplay to "just a bit later" such that it can use the > debugger. IIRC it still has some rough edges in some cases, but in > theory it should be possible to make this work such that you can (for > example) Edebug `font-lock.el` itself. It would be nice to have this documented in the ELisp manual. I can easily add the jit-lock-debug-mode variable there, but from what you write, there seems to be more wisdom to go with its usage.