]> git.eshelyaron.com Git - emacs.git/commit
Lazily print backtrace frame local variables
authorGemini Lasswell <gazally@runbox.com>
Fri, 22 Jun 2018 19:53:37 +0000 (12:53 -0700)
committerGemini Lasswell <gazally@runbox.com>
Fri, 3 Aug 2018 15:53:02 +0000 (08:53 -0700)
commitd6b364edfe582be24cb54693c5aaf52c0add22d5
treebfcbeed807338df808b7079626761db81b812f36
parent5b50fa5a9d4f7c032a845bc0152c11b70ee1bf53
Lazily print backtrace frame local variables

Instead of printing the local variables for all frames when the
backtrace buffer is created, print them when they are first made
visible.  Add a prefix argument to backtrace-toggle-locals to toggle
local variables display for the entire buffer.
* lisp/emacs-lisp/backtrace.el (backtrace-view): Mention
:show-locals in docstring.
(backtrace-get-section-end): Remove function.
(backtrace-toggle-locals): Add prefix argument.
(backtrace--with-output-variables): Move before first use.
(backtrace--set-frame-locals-visible): New function.
(backtrace--set-locals-visible-overlay): New function.
(backtrace--set-locals-visible): Remove function.
(backtrace-toggle-feature): Remove TODO comment.
(backtrace--print-locals): Skip printing the locals if they are not
visible.
lisp/emacs-lisp/backtrace.el