diff options
| author | Dmitry Gutov | 2025-08-09 22:40:07 +0300 |
|---|---|---|
| committer | Dmitry Gutov | 2025-08-09 22:40:07 +0300 |
| commit | 07eb39f1132ceb15e80e7912445890faa8f5b78c (patch) | |
| tree | e6ab9c32a334fca746e68a9ac62728e312cfcd1c /admin/notes/java | |
| parent | c4af4b39018923fdfc22b515acc1f6ba3f2b024d (diff) | |
| download | emacs-07eb39f1132ceb15e80e7912445890faa8f5b78c.tar.gz emacs-07eb39f1132ceb15e80e7912445890faa8f5b78c.zip | |
Allow thread's buffer to be killed, by default
* src/thread.c (Fmake_thread): Add new argument (bug#76969).
(thread_set_error): New function, extracted from thread-signal.
(Fthread_buffer_disposition): Add getter.
(Fthread_set_buffer_disposition): And setter.
(thread_check_current_buffer): Check the values of threads'
buffer_disposition.
(thread_all_before_buffer_killed): New function.
(init_threads): Set buffer_disposition to nil for the main thread.
(syms_of_threads): Add new symbols and define the error.
* src/thread.h (thread_state): New field buffer_disposition.
(thread_all_before_buffer_killed): Declare.
* src/buffer.c (Fkill_buffer): Call thread_check_current_buffer
one more time after all hooks and after that call
thread_all_before_buffer_killed.
* src/comp.c (ABI_VERSION): Increase the value.
* test/src/thread-tests.el (thread-buffer-disposition-t)
(thread-buffer-disposition-nil)
(thread-buffer-disposition-silently)
(thread-set-buffer-disposition)
(thread-set-buffer-disposition-main-thread): New tests.
* doc/lispref/threads.texi (Basic Thread Functions): Document
buffer-disposition in make-thread and its getter and setter.
* etc/NEWS: Add entry.
Diffstat (limited to 'admin/notes/java')
0 files changed, 0 insertions, 0 deletions