]> git.eshelyaron.com Git - emacs.git/commit
Show backtraces of threads from thread list buffer
authorGemini Lasswell <gazally@runbox.com>
Thu, 9 Aug 2018 21:21:57 +0000 (14:21 -0700)
committerGemini Lasswell <gazally@runbox.com>
Sun, 9 Sep 2018 14:41:49 +0000 (07:41 -0700)
commit3fb8f306475a87a30a7dd68387d8da859cffc90a
tree8d8f600a2bae48e351a7424648ef100d402ae261
parentdc5c76c37488d6fd546eefb33cea1edf4d13859e
Show backtraces of threads from thread list buffer

* src/eval.c (backtrace_thread_p, backtrace_thread_top)
(backtrace_thread_next, Fbacktrace_frames_from_thread): New functions.
* lisp/thread.el (thread-list-mode-map): Add keybinding and
menu item for 'thread-list-pop-to-backtrace'.
(thread-list-mode): Make "Thread Name" column wide enough
for the result of printing a thread with no name with 'prin1'.
(thread-list--get-entries): Use 'thread-list--name'.
(thread-list--send-signal): Remove unnecessary calls to 'threadp'.
(thread-list-backtrace--thread): New variable.
(thread-list-pop-to-backtrace): New command.
(thread-list-backtrace--revert-hook-function)
(thread-list--make-backtrace-frame)
(thread-list-backtrace--insert-header, thread-list--name): New
functions.
lisp/thread.el
src/eval.c