From: Alan Mackenzie <acm@muc.de>
To: Vasilij Schneidermann <v.schneidermann@gmail.com>
Cc: 24514@debbugs.gnu.org
Subject: bug#24514: 24.5; [WIP][PATCH] Lispy backtraces
Date: 23 Sep 2016 18:47:59 -0000 [thread overview]
Message-ID: <20160923184759.30985.qmail@mail.muc.de> (raw)
In-Reply-To: <mailman.2864.1474586229.22741.bug-gnu-emacs@gnu.org>
In article <mailman.2864.1474586229.22741.bug-gnu-emacs@gnu.org> you wrote:
> [-- text/plain, encoding 7bit, charset: utf-8, 30 lines --]
> I wrote a minimal patch that increases the overall consistency in a
> backtrace buffer by printing the call stack frames as S-Expressions.
> Before:
> Debugger entered--Lisp error: (wrong-type-argument number-or-marker-p t)
> +(1 t)
> eval((+ 1 t) nil)
> eval-expression((+ 1 t) nil)
> call-interactively(eval-expression nil nil)
> command-execute(eval-expression)
> After:
> Debugger entered--Lisp error: (wrong-type-argument number-or-marker-p t)
> (debug error (wrong-type-argument number-or-marker-p t))
> (+ 1 t)
> (eval (+ 1 t) nil)
> (eval-expression (+ 1 t) nil)
> (funcall-interactively eval-expression (+ 1 t) nil)
> (call-interactively eval-expression nil nil)
> (command-execute eval-expression)
I'm not sure I'm in favour of this change. There is some tool in some
circumstances which prints the lines in the "before:" fashion
interspersed with internal forms from function which start off with "("
in column 0. Having the distinction between lines starting with "(" and
lines starting with the function name is handy for telling them apart.
Sorry I can't be more specific about the circumstances this happens in,
but it happens relatively frequently.
> Now, this patch isn't perfect. For some reason there's an extra debug
> line in the second version, I've yet to investigate into the reason for
> this. The other problem is that while I can't imagine any reason to go
> back to the original view of the backtrace, I cannot rule out that this
> change might break other tools relying on it. I'd appreciate any
> feedback on this.
--
Alan Mackenzie (Nuremberg, Germany).
next prev parent reply other threads:[~2016-09-23 18:47 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-09-22 23:14 bug#24514: 24.5; [WIP][PATCH] Lispy backtraces Vasilij Schneidermann
2016-09-23 2:22 ` Clément Pit--Claudel
2016-09-23 7:51 ` Vasilij Schneidermann
2016-09-23 13:22 ` Clément Pit--Claudel
2016-09-23 8:12 ` Vasilij Schneidermann
2016-09-23 9:44 ` Eli Zaretskii
2016-09-23 9:55 ` bug#24515: " Vasilij Schneidermann
2016-09-23 10:06 ` Eli Zaretskii
2016-09-23 13:25 ` Clément Pit--Claudel
2016-09-23 16:33 ` John Wiegley
[not found] ` <mailman.2864.1474586229.22741.bug-gnu-emacs@gnu.org>
2016-09-23 18:47 ` Alan Mackenzie [this message]
2016-09-23 20:43 ` Richard Stallman
2016-09-27 19:16 ` Vasilij Schneidermann
2016-09-28 15:28 ` Eli Zaretskii
2016-09-30 10:29 ` Vasilij Schneidermann
2016-09-30 13:26 ` Eli Zaretskii
2016-10-12 15:34 ` Vasilij Schneidermann
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20160923184759.30985.qmail@mail.muc.de \
--to=acm@muc.de \
--cc=24514@debbugs.gnu.org \
--cc=v.schneidermann@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).