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 19:04:50 +0300 Message-ID: <8335fkes4d.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> <868rpd0w1a.fsf@mail.linkov.net> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="3690"; mail-complaints-to="usenet@ciao.gmane.io" Cc: monnier@iro.umontreal.ca, acm@muc.de, larsi@gnus.org, emacs-devel@gnu.org To: Juri Linkov Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri Jul 01 18:21:01 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 1o7JO7-0000lR-R8 for ged-emacs-devel@m.gmane-mx.org; Fri, 01 Jul 2022 18:21:00 +0200 Original-Received: from localhost ([::1]:34444 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1o7JO6-0007Wf-Sf for ged-emacs-devel@m.gmane-mx.org; Fri, 01 Jul 2022 12:20:58 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:44656) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o7J8R-0001DY-Kz for emacs-devel@gnu.org; Fri, 01 Jul 2022 12:04:47 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:37722) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o7J8J-0004OK-Rq; Fri, 01 Jul 2022 12:04:40 -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=8C8zAPm3SSgKe5YZuKku1eFt+dOEevykrkUOOh6Ic7c=; b=Z1z8EzcytMRw g6MYc5/xnw9oKm9tREnOJ4gdPJwkicOGMzSPCNPb4QaZzTMltEUgw93V+LbY1rBZWTfFc4SAyYa3c CHCMBOuAFnZTEivxX3Swx+XnXMBRULNaWG/kbZFA3XIEAOirzZW7/Ew67FdyB61UpEW/QwdO37p4d 6rlfPT9nFRNRlvewySxrEgwtVvkgSPY8kJ1WZbplWPetJhCkw73ayOCAeEkFICyevYu7WnX1Z+lQp NgsLmyIEjftHQhgZgab0K+RMRc9xLtYa78nhfeWuQ2YVm6vXQ+5oRMsDq4IERNlW9Ludfr3OMO3XX QZ5suagRtedvmPXEfwiEFA==; Original-Received: from [87.69.77.57] (port=4559 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 1o7J8J-0001v7-AI; Fri, 01 Jul 2022 12:04:39 -0400 In-Reply-To: <868rpd0w1a.fsf@mail.linkov.net> (message from Juri Linkov on Fri, 01 Jul 2022 18:34:01 +0300) 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:291787 Archived-At: > From: Juri Linkov > Cc: Stefan Monnier , acm@muc.de, larsi@gnus.org, > emacs-devel@gnu.org > Date: Fri, 01 Jul 2022 18:34:01 +0300 > > >> 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. > > Also would be nice to introduce a "log level" with possible values > Fatal, Error, Warn, Info, Debug, Trace. Then depending on the > customized value decide whether print the complete backtrace to > the *Messages* buffer, or only the error message, or nothing at all. I don't necessarily object, but I'm asking myself who'd want less than the complete information. And I don't find any good answer; it seems to me that whenever one gets the less detailed report, one will immediately want the most detailed one.