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: Sat, 02 Jul 2022 08:53:00 +0300 Message-ID: <83v8sgcb7n.fsf@gnu.org> References: <87edzchi3d.fsf@gnus.org> <83sfnsadow.fsf@gnu.org> <83o7yg9f0w.fsf@gnu.org> <83r1396lvr.fsf@gnu.org> <83edz87ivz.fsf@gnu.org> <8335flfl2k.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="22058"; 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 Sat Jul 02 07:53:39 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 1o7W4Y-0005X8-QD for ged-emacs-devel@m.gmane-mx.org; Sat, 02 Jul 2022 07:53:38 +0200 Original-Received: from localhost ([::1]:51312 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1o7W4X-0007AX-43 for ged-emacs-devel@m.gmane-mx.org; Sat, 02 Jul 2022 01:53:37 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:33236) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o7W3m-0006Oe-66 for emacs-devel@gnu.org; Sat, 02 Jul 2022 01:52:50 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:44344) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o7W3k-0003Oc-Up; Sat, 02 Jul 2022 01:52:48 -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=DsdrTWv8d5y9ZsiygYSjcFet8HTcZPklFhZGxQoLvRU=; b=S3mMPfjNMXVc p3jXabkZhjNj0DydQRbCbVUYvVPRkRH4tXD+/RrvreH/AkA53Xx7XjcfM29kx/TmTMjN4UBc5UQxg OVhdR0u0Ld0Wh7ou9dQxHP9r3uE1xNBRr+wUmI/h79yaMq8PYl9i55ujpRlIgoi0cjIb8U2LU535q ARK/UEQ46Vqvys6frdE7pAFBlaGfBxwl4h4pPSUrEueSd/em7LAZ2UphY5fjYsHWPczSh0YfNoCdz th/6QHFlZeTfJCpMS0NM+uuOmC2fGkUmHEHm3mMuz2iI4XieDlNa+hKntrXzRvYqCRuBWLsY+Mm9O /F3XN6Arllj1gZEM8sWhQg==; Original-Received: from [87.69.77.57] (port=3522 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 1o7W3j-000235-Kn; Sat, 02 Jul 2022 01:52:48 -0400 In-Reply-To: (message from Stefan Monnier on Fri, 01 Jul 2022 15:26:26 -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:291791 Archived-At: > From: Stefan Monnier > Cc: acm@muc.de, larsi@gnus.org, emacs-devel@gnu.org > Date: Fri, 01 Jul 2022 15:26:26 -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. > > No, there's no extra wisdom. Then what did you mean by "some rough edges in some cases"?