summaryrefslogtreecommitdiff
path: root/doc/lispref/threads.texi
Commit message (Collapse)AuthorAgeFilesLines
* Merge from origin/emacs-26Paul Eggert2018-12-311-1/+1
|\ | | | | | | | | | | 2fcf2df Fix copyright years by hand 26bed8b Update copyright year to 2019 2814292 Fix value of default frame height. (Bug#33921)
| * Update copyright year to 2019Paul Eggert2019-01-011-1/+1
| | | | | | | | Run 'TZ=UTC0 admin/update-copyright $(git ls-files)'.
* | Merge from origin/emacs-26Glenn Morris2018-12-301-3/+3
|\ \ | |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 3abebeb * lisp/files.el (cd): Fix last change. (Bug#33791) 7a60a4f Fix remote directories in Eshell on MS-Windows 822a2d0 Fix :type 'group' in defcustom a731c56 Fix NS fringe bitmap drawing bug (bug#33864) 0c52459 Fix commentary in dispnew.c c9fdd1b Improve accept-process-process doc 9578c2a Fix a simple bug in display-buffer-use-some-frame 0f9be72 Clarify thread switching while waiting for process output 24ddea0 Improve process doc. with respect to handling of large input ... 2931016 ; Cosmetic changes in etc/NEWS 85516b8 Minor copyedits in landmark.el # Conflicts: # etc/NEWS
| * Clarify thread switching while waiting for process outputMichael Albinus2018-12-231-3/+3
| | | | | | | | | | | | * doc/lispref/threads.texi (Threads): Clarify, that thread switching happens when waiting for process output from asynchronous processes.
* | Improve documentation of thread list bufferGemini Lasswell2018-09-091-14/+18
| | | | | | | | | | | | * doc/lispref/threads.texi (The Thread List): Cross-reference 'Basic Thread Functions'. Use defvar for thread-list-refresh-seconds. Improve descriptions of the backtrace and signal commands.
* | Document list-threads and its bufferGemini Lasswell2018-09-091-0/+47
| | | | | | | | | | | | * doc/lispref/threads.texi (Threads): Add menu item. (The Thread List): New node. * doc/lispref/elisp.texi (Top): Add menu item.
* | Merge from origin/emacs-26Michael Albinus2018-08-311-1/+1
|\ \ | |/ | | | | | | | | ac7936cb8f Rename thread-alive-p to thread-live-p 3d09d533d1 rcirc: Document /reconnect as a built-in command (Bug#29656) a1e615618d * test/lisp/calc/calc-tests.el (calc-imaginary-i): New test.
| * Rename thread-alive-p to thread-live-pMichael Albinus2018-08-311-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * doc/lispref/threads.texi (Basic Thread Functions): Use thread-live-p. * etc/NEWS: 'thread-alive-p' has been renamed to 'thread-live-p'. * src/thread.c (thread_live_p): Rename from thread_alive_p. Adapt all callees. (Fthread_live_p): Rename from Fthread_alive_p. (syms_of_threads): Make thread-alive-p an alias of thread-live-p. * test/src/thread-tests.el (all): Replace `thread-alive-p' by `thread-live-p'. (threads-live): Rename from `threads-alive'.
* | Handle thread-signal towards the main thread (Bug#32502)Michael Albinus2018-08-301-8/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * doc/lispref/threads.texi (Basic Thread Functions): * etc/NEWS: Document thread-signal towards the main thread. * lisp/emacs-lisp/thread.el: New package. * src/keyboard.c (read_char): Check for Qthread_event. (kbd_buffer_get_event, make_lispy_event): Handle THREAD_EVENT. (syms_of_keyboard): Declare Qthread_event. (keys_of_keyboard): Add thread-handle-event to special-event-map. * src/termhooks.h (enum event_kind): Add THREAD_EVENT. * src/thread.c: Include "keyboard.h". (poll_suppress_count) Don't declare extern. (Fthread_signal): Raise event if THREAD is the main thread. (Bug#32502) * test/src/thread-tests.el (thread): Require it. (threads-signal-main-thread): New test.
* | thread-join returns the result of finished threadMichael Albinus2018-07-221-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * doc/lispref/threads.texi (Basic Thread Functions): * etc/NEWS: Document return value of `thread-join'. * src/thread.c (invoke_thread_function, Fmake_thread) (init_main_thread): Set result. (Fthread_join): Propagate signals, and return result. (Vmain_thread): New defvar. * src/thread.h (struct thread_state): Add `result' field. * test/src/thread-tests.el (threads-join): Test also return value. (threads-join-error): New test. (threads-mutex-signal): Check for propagation of `quit' signal.
* | Add variable main-thread, fix Bug#32169Michael Albinus2018-07-171-2/+17
|/ | | | | | | | | | | | | | | | * 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.
* Update copyright year to 2018Paul Eggert2018-01-011-1/+1
| | | | Run admin/update-copyright.
* Rudimentary error handling for non-main threadsEli Zaretskii2017-01-181-0/+11
| | | | | | | | | | | | | | * src/thread.c (last_thread_error): New static variable. (syms_of_threads): Staticpro it. (record_thread_error, Fthread_last_error): New functions. (syms_of_threads): Defsubr Fthread_last_error. * doc/lispref/threads.texi (Basic Thread Functions): Document thread-last-error. * test/src/thread-tests.el (thread-errors, thread-signal-early) (threads-condvar-wait): Test the values returned by thread-last-error.
* Update copyright year to 2017 in masterPaul Eggert2017-01-011-1/+1
| | | | | | Run admin/update-copyright in the master branch. This fixes files that were not already fixed in the emacs-25 branch before it was merged here.
* Clarify thread-signal semanticsNoam Postavsky2016-12-121-3/+5
| | | | | * doc/lispref/threads.texi (Basic Thread Functions): Explain that the thread will be signaled as soon as possible.
* ; Fix copyright years in new filesGlenn Morris2016-12-101-2/+1
|
* use condition-notify in the docs, not condition-signalTom Tromey2013-08-271-2/+2
|
* zap until-condition docsTom Tromey2013-08-271-8/+1
|
* rename thread-blocker to thread--blockerTom Tromey2013-08-271-3/+4
|
* mention let bindings and lack of other ways to rewindTom Tromey2012-12-231-0/+7
|
* link from thread docs to match dataTom Tromey2012-09-041-1/+2
|
* minor update to thread-join docsTom Tromey2012-08-251-1/+3
|
* minor documentation updatesTom Tromey2012-08-241-1/+5
|
* document until-conditionTom Tromey2012-08-231-0/+6
|
* first draft of threads documentationTom Tromey2012-08-231-0/+238