summaryrefslogtreecommitdiff
path: root/lisp/thread.el
Commit message (Collapse)AuthorAgeFilesLines
* * lisp/thread.el: Remove more useless runtime requires.Glenn Morris2018-09-101-2/+2
|
* Remove useless requires of subr-x at runtimeGlenn Morris2018-09-101-1/+1
| | | | | * lisp/thread.el, lisp/net/nsm.el, lisp/erc/erc.el: Don't require subr-x at runtime.
* Use thread-live-p instead of obsolete thread-alive-pGemini Lasswell2018-09-091-6/+6
| | | | | | | | * lisp/thread.el (thread-list--get-status) (thread-list--send-signal, thread-list-pop-to-backtrace) (thread-list-backtrace--revert-hook-function) (thread-list-backtrace--insert-header): Use thread-live-p instead of thread-alive-p.
* Add check in list-threads for --without-threads configurationGemini Lasswell2018-09-091-0/+3
| | | | | * lisp/thread.el (list-threads): Signal an error if the Emacs configuration doesn't have threads.
* Show backtraces of threads from thread list bufferGemini Lasswell2018-09-091-6/+55
| | | | | | | | | | | | | | | | | * 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.
* Make list-threads refresh the *Threads* buffer if it already existsGemini Lasswell2018-09-091-1/+3
| | | | | * lisp/thread.el (list-threads): Call revert-buffer instead of waiting for the timer function to do it.
* Improve docstrings of thread-list functionsGemini Lasswell2018-09-091-16/+17
| | | | | | | | | * lisp/thread.el (thread-list--timer-func): Change argument from 'buf' to 'buffer'. (thread-list--get-entries, thread-list--get-status): Improve docstring. (thread-list--send-signal): Change argument from 'sgnl' to 'signal'. Tell the user when the thread is no longer alive.
* Make lisp/thread.el the new home for thread-related Lisp functionsGemini Lasswell2018-09-091-0/+145
* lisp/emacs-lisp/thread-list.el: Remove. * lisp/emacs-lisp/thread.el: Remove. * lisp/thread.el: New file.