diff options
author | Gemini Lasswell <gazally@runbox.com> | 2018-07-14 08:05:51 -0700 |
---|---|---|
committer | Gemini Lasswell <gazally@runbox.com> | 2018-07-15 06:49:54 -0700 |
commit | fb3578bb1b6f852d651eedd17057e92f6ff23fc4 (patch) | |
tree | ac5324ee470f9953ff2719dc834dcb939ef3deb6 /lisp/emacs-lisp/byte-opt.el | |
parent | 2e733078ba0fb8331206fdb0e065957e56df0dd4 (diff) | |
download | emacs-scratch/backtrace-mode.tar.gz |
Add new command to expand all "..."s in a backtrace framescratch/backtrace-mode
Also move the code that tries to fit a printed representation into a
limited number of characters using appropriate values of print-level
and print-length into a new function in cl-print.el for future use by
other parts of Emacs.
* doc/lispref/debugging.texi (Backtraces): Document new keybinding.
* lisp/emacs-lisp/backtrace.el (backtrace-line-length): Add the
option of unlimited line length.
(backtrace--match-ellipsis-in-string): Add a comment to explain
why this function is necessary.
(backtrace-mode-map): Add keybinding for 'backtrace-expand-ellipses'.
(backtrace-expand-ellipsis): Use 'cl-print-to-string-with-limit'.
(backtrace-expand-ellipses): New function.
(backtrace-pretty-print): Update TODO comment with bug number.
(backtrace-print-to-string): Use 'cl-print-to-string-with-limit'.
Tag the printed forms with a gensym instead of the values of
print-length and print-level.
(backtrace--print): Add 'stream' argument.
(backtrace-mode): Remove a TODO comment.
* test/lisp/emacs-lisp/backtrace-tests.el
(backtrace-tests--expand-ellipsis): Make the test less dependent
on the implementation.
(backtrace-tests--expand-ellipses): New test.
* lisp/emacs-lisp/cl-print.el (cl-print-to-string-with-limit): New
function.
* test/lisp/emacs-lisp/cl-print-tests.el
(cl-print-tests-print-to-string-with-limit): New test.
Diffstat (limited to 'lisp/emacs-lisp/byte-opt.el')
0 files changed, 0 insertions, 0 deletions