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 /src/comp.c | |
| 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 'src/comp.c')
| -rw-r--r-- | src/comp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/comp.c b/src/comp.c index bd5e637afe3..1e06f83dcbd 100644 --- a/src/comp.c +++ b/src/comp.c | |||
| @@ -468,7 +468,7 @@ load_gccjit_if_necessary (bool mandatory) | |||
| 468 | 468 | ||
| 469 | 469 | ||
| 470 | /* Increase this number to force a new Vcomp_abi_hash to be generated. */ | 470 | /* Increase this number to force a new Vcomp_abi_hash to be generated. */ |
| 471 | #define ABI_VERSION "10" | 471 | #define ABI_VERSION "11" |
| 472 | 472 | ||
| 473 | /* Length of the hashes used for eln file naming. */ | 473 | /* Length of the hashes used for eln file naming. */ |
| 474 | #define HASH_LENGTH 8 | 474 | #define HASH_LENGTH 8 |