unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Gemini Lasswell <gazally@runbox.com>
To: Emacs Development <emacs-devel@gnu.org>
Subject: Backtrace mode
Date: Fri, 27 Jul 2018 13:13:30 -0700	[thread overview]
Message-ID: <871sboqvx1.fsf@runbox.com> (raw)

Hi All,

I've finished everything I set out to add to Backtrace mode, and have
pushed it to scratch/backtrace-mode. Documentation, NEWS and tests are
all done, so please have a look at it and let me know if you find
anything that should be fixed before I merge it.

Notable changes:

- It's now possible to toggle both local variable display and printing
with 'print-circle' for the entire buffer instead of just the current
frame, using the C-u prefix with 'v' and '#' respectively.

- C functions in backtraces now get links to their source code. Links
are also created for the reading position of 'eval-buffer' and
'eval-region'.

- I've added a new function 'cl-print-to-string-with-limit' to
cl-print.el, which tries to get a printed representation to fit in a
specified number of characters using 'print-length' and 'print-level'.
Backtrace mode is using it and I plan to use it for results printing
in Edebug, the Lisp Debugger and ERT, hopefully putting an end to
performance problems caused by excessively long lines in those modes.

- You can now expand all the '...'s in a backtrace frame at once using
backtrace-expand-ellipses, bound to '.' and with the C-u prefix expand
them without putting a limit on the expansion.

- In Edebug backtraces, three new commands are available.
backtrace-goto-source, bound to 's', works on frames in
Edebug-instrumented code, which are marked with a '>' on the left side.
I've also added edebug-backtrace-show-instrumentation and
edebug-backtrace-hide-instrumentation, to show and hide Edebug's
functions in the backtrace.

- The function 'backtrace' now uses Backtrace mode's printing and is now
located in backtrace.el instead of subr.el. The functions
'backtrace-frame' and 'backtrace-frames' remain in subr.el so that
Backtrace mode doesn't have to be loaded for programmatic access to the
backtrace from Lisp.



             reply	other threads:[~2018-07-27 20:13 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-07-27 20:13 Gemini Lasswell [this message]
2018-07-27 20:36 ` Backtrace mode John Wiegley
2018-07-28 16:28 ` Eli Zaretskii
2018-08-01 15:22   ` Gemini Lasswell
2018-08-01 20:58 ` Clément Pit-Claudel
2018-08-03 15:48   ` Gemini Lasswell
2018-08-01 21:07 ` Clément Pit-Claudel
2018-08-03 17:14   ` Gemini Lasswell
2018-08-03 18:03     ` Clément Pit-Claudel

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=871sboqvx1.fsf@runbox.com \
    --to=gazally@runbox.com \
    --cc=emacs-devel@gnu.org \
    /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).