[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] scratch/list-threads 468a32c 8/9: Add check in list-thread
From: |
Gemini Lasswell |
Subject: |
[Emacs-diffs] scratch/list-threads 468a32c 8/9: Add check in list-threads for --without-threads configuration |
Date: |
Mon, 27 Aug 2018 11:53:10 -0400 (EDT) |
branch: scratch/list-threads
commit 468a32c9568d9ff1053db4d5935a3f8a97828d8f
Author: Gemini Lasswell <address@hidden>
Commit: Gemini Lasswell <address@hidden>
Add check in list-threads for --without-threads configuration
* lisp/thread.el (list-threads): Signal an error if the Emacs configuration
doesn't have threads.
---
lisp/thread.el | 3 +++
1 file changed, 3 insertions(+)
diff --git a/lisp/thread.el b/lisp/thread.el
index 7225ed4..0957c7f 100644
--- a/lisp/thread.el
+++ b/lisp/thread.el
@@ -65,6 +65,9 @@
(defun list-threads ()
"Display a list of threads."
(interactive)
+ ;; Threads may not exist, if Emacs was configured --without-threads.
+ (unless (bound-and-true-p main-thread)
+ (error "Threads are not supported in this configuration"))
;; Generate the Threads list buffer, and switch to it.
(let ((buf (get-buffer-create "*Threads*")))
(with-current-buffer buf
- [Emacs-diffs] branch scratch/list-threads created (now 49afbb9), Gemini Lasswell, 2018/08/27
- [Emacs-diffs] scratch/list-threads 468a32c 8/9: Add check in list-threads for --without-threads configuration,
Gemini Lasswell <=
- [Emacs-diffs] scratch/list-threads 4516d71 6/9: Show backtraces of threads from thread list buffer, Gemini Lasswell, 2018/08/27
- [Emacs-diffs] scratch/list-threads fd3f62c 7/9: Document list-threads and its buffer, Gemini Lasswell, 2018/08/27
- [Emacs-diffs] scratch/list-threads 49afbb9 9/9: Add tests for list-threads and the *Threads* buffer, Gemini Lasswell, 2018/08/27
- [Emacs-diffs] scratch/list-threads 370b837 5/9: Make small fixes to Edebug and debugger documentation, Gemini Lasswell, 2018/08/27
- [Emacs-diffs] scratch/list-threads 0b7fb4c 4/9: Make list-threads refresh the *Threads* buffer if it already exists, Gemini Lasswell, 2018/08/27
- [Emacs-diffs] scratch/list-threads 833a2d4 2/9: Make lisp/thread.el the new home for thread-related Lisp functions, Gemini Lasswell, 2018/08/27
- [Emacs-diffs] scratch/list-threads 1c971c0 1/9: Add list-threads command and thread-list-mode, Gemini Lasswell, 2018/08/27
- [Emacs-diffs] scratch/list-threads 186ee8c 3/9: Improve docstrings of thread-list functions, Gemini Lasswell, 2018/08/27