Function: thread-list-pop-to-backtrace

thread-list-pop-to-backtrace is an interactive and byte-compiled function defined in thread.el.gz.

Signature

(thread-list-pop-to-backtrace)

Documentation

Display the backtrace for the thread at point.

Key Bindings

Source Code

;; Defined in /usr/src/emacs/lisp/thread.el.gz
(defun thread-list-pop-to-backtrace ()
  "Display the backtrace for the thread at point."
  (interactive)
  (let ((thread (tabulated-list-get-id)))
    (if (thread-live-p thread)
        (let ((buffer (get-buffer-create "*Thread Backtrace*")))
          (pop-to-buffer buffer)
          (unless (derived-mode-p 'backtrace-mode)
            (backtrace-mode)
            (add-hook 'backtrace-revert-hook
                      #'thread-list-backtrace--revert-hook-function)
            (setq backtrace-insert-header-function
                  #'thread-list-backtrace--insert-header))
          (setq thread-list-backtrace--thread thread)
          (thread-list-backtrace--revert-hook-function)
          (backtrace-print)
          (goto-char (point-min)))
      (message "This thread is no longer alive"))))