]> git.eshelyaron.com Git - emacs.git/commit
Add variable main-thread, fix Bug#32169
authorMichael Albinus <michael.albinus@gmx.de>
Tue, 17 Jul 2018 10:03:43 +0000 (12:03 +0200)
committerMichael Albinus <michael.albinus@gmx.de>
Tue, 17 Jul 2018 10:03:43 +0000 (12:03 +0200)
commit798cbac170f05a749a4d5130d64d83c202f09158
tree8541cd26117f0aee8bc02612f98d99fe49127ef2
parent94a16e7360b69191001bc594ab1b66f2b6bf97c2
Add variable main-thread, fix Bug#32169

* doc/lispref/threads.texi (Basic Thread Functions): Add example,
how to propagate signals to the main thread.  Describe variable
`main-thread'.  Document optional argument CLEANUP of
`thread-last-error'.

* src/thread.c (Fthread_last_error): Add optional argument
CLEANUP.  (Bug#32169)
(main-thread): New defvar.

* test/src/thread-tests.el (thread-last-error): Adapt declaration.
(main-thread): Declare.
(threads-main-thread): New test.
(threads-errors): Extend test.
doc/lispref/threads.texi
src/thread.c
test/src/thread-tests.el