[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] master b7719f0 11/12: Use thread-live-p instead of obsolet
From: |
Gemini Lasswell |
Subject: |
[Emacs-diffs] master b7719f0 11/12: Use thread-live-p instead of obsolete thread-alive-p |
Date: |
Sun, 9 Sep 2018 11:31:41 -0400 (EDT) |
branch: master
commit b7719f0cdee4aa21dce16304d410f156c65011e2
Author: Gemini Lasswell <address@hidden>
Commit: Gemini Lasswell <address@hidden>
Use thread-live-p instead of obsolete thread-alive-p
* 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.
---
lisp/thread.el | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/lisp/thread.el b/lisp/thread.el
index 5320885..1c5dccf 100644
--- a/lisp/thread.el
+++ b/lisp/thread.el
@@ -121,7 +121,7 @@ An EVENT has the format
Return a list of two strings, one describing THREAD's status, the
other describing THREAD's blocker, if any."
(cond
- ((not (thread-alive-p thread)) '("Finished" ""))
+ ((not (thread-live-p thread)) '("Finished" ""))
((eq thread (current-thread)) '("Running" ""))
(t (if-let ((blocker (thread--blocker thread)))
`("Blocked" ,(prin1-to-string blocker))
@@ -141,9 +141,9 @@ other describing THREAD's blocker, if any."
"Send the specified SIGNAL to the thread at point.
Ask for user confirmation before signaling the thread."
(let ((thread (tabulated-list-get-id)))
- (if (thread-alive-p thread)
+ (if (thread-live-p thread)
(when (y-or-n-p (format "Send %s signal to %s? " signal thread))
- (if (thread-alive-p thread)
+ (if (thread-live-p thread)
(thread-signal thread signal nil)
(message "This thread is no longer alive")))
(message "This thread is no longer alive"))))
@@ -155,7 +155,7 @@ Ask for user confirmation before signaling the thread."
"Display the backtrace for the thread at point."
(interactive)
(let ((thread (tabulated-list-get-id)))
- (if (thread-alive-p thread)
+ (if (thread-live-p thread)
(let ((buffer (get-buffer-create "*Thread Backtrace*")))
(pop-to-buffer buffer)
(unless (derived-mode-p 'backtrace-mode)
@@ -172,7 +172,7 @@ Ask for user confirmation before signaling the thread."
(defun thread-list-backtrace--revert-hook-function ()
(setq backtrace-frames
- (when (thread-alive-p thread-list-backtrace--thread)
+ (when (thread-live-p thread-list-backtrace--thread)
(mapcar #'thread-list--make-backtrace-frame
(backtrace--frames-from-thread
thread-list-backtrace--thread)))))
@@ -182,7 +182,7 @@ Ask for user confirmation before signaling the thread."
(defun thread-list-backtrace--insert-header ()
(let ((name (thread-list--name thread-list-backtrace--thread)))
- (if (thread-alive-p thread-list-backtrace--thread)
+ (if (thread-live-p thread-list-backtrace--thread)
(progn
(insert (substitute-command-keys "Backtrace for thread `"))
(insert name)
- [Emacs-diffs] master updated (e489685 -> a704bad), Gemini Lasswell, 2018/09/09
- [Emacs-diffs] master a133b1f 01/12: Add list-threads command and thread-list-mode, Gemini Lasswell, 2018/09/09
- [Emacs-diffs] master a704bad 12/12: Merge branch 'scratch/list-threads', Gemini Lasswell, 2018/09/09
- [Emacs-diffs] master 8adc0e5 10/12: Improve documentation of thread list buffer, Gemini Lasswell, 2018/09/09
- [Emacs-diffs] master b7719f0 11/12: Use thread-live-p instead of obsolete thread-alive-p,
Gemini Lasswell <=
- [Emacs-diffs] master e19ca77 07/12: Document list-threads and its buffer, Gemini Lasswell, 2018/09/09
- [Emacs-diffs] master 2f5a65a 09/12: Add tests for list-threads and the *Threads* buffer, Gemini Lasswell, 2018/09/09
- [Emacs-diffs] master 703b1cf 08/12: Add check in list-threads for --without-threads configuration, Gemini Lasswell, 2018/09/09
- [Emacs-diffs] master 3fb8f30 06/12: Show backtraces of threads from thread list buffer, Gemini Lasswell, 2018/09/09
- [Emacs-diffs] master dc5c76c 05/12: Make small fixes to Edebug and debugger documentation, Gemini Lasswell, 2018/09/09
- [Emacs-diffs] master bdba72b 04/12: Make list-threads refresh the *Threads* buffer if it already exists, Gemini Lasswell, 2018/09/09
- [Emacs-diffs] master ea1ec0e 03/12: Improve docstrings of thread-list functions, Gemini Lasswell, 2018/09/09
- [Emacs-diffs] master 3ca82c5 02/12: Make lisp/thread.el the new home for thread-related Lisp functions, Gemini Lasswell, 2018/09/09