[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: The poor quality of Emacs's backtraces

From: Alan Mackenzie
Subject: Re: The poor quality of Emacs's backtraces
Date: Fri, 14 Jul 2023 10:58:28 +0000

Hello, Ihor and Mattias.

On Fri, Jul 14, 2023 at 09:18:19 +0000, Ihor Radchenko wrote:
> Mattias Engdegård <mattias.engdegard@gmail.com> writes:

> > 14 juli 2023 kl. 10.00 skrev Ihor Radchenko <yantar92@posteo.net>:

[ .... ]

> I am a bit confused.
> Aren't we talking about terminal output?

> >> Of course, the `condition-case' created by ERT will still be an issue.

> > Yes, and that was probably what really caused Alan's troubles. We could do 
> > something about that.

condition-case and backtrace mix very poorly.  The problem is that, in
the event of an error, condition-case unwinds the stack _before_
executing its error handler.  So the pertinent information is discarded
before backtrace gets evaluated.

As yet, I've only got vague notions as to how to solve this.  But it
surely ought to be possible to amend condition-case, or create a variant
of condition-case, where the stack unwinding only occurs _after_
evaluating the error handler.

> I think that this problem was left unresolved due to lack of ideas:
> https://debbugs.gnu.org/cgi/bugreport.cgi?bug=50629

That bug looks like just the same problems I'm having.

> -- 
> Ihor Radchenko // yantar92,
> Org mode contributor,
> Learn more about Org mode at <https://orgmode.org/>.
> Support Org development at <https://liberapay.com/org-mode>,
> or support my work at <https://liberapay.com/yantar92>

Alan Mackenzie (Nuremberg, Germany).

reply via email to

[Prev in Thread] Current Thread [Next in Thread]