| www.delorie.com/gnu/docs/elisp-manual-21/elisp_615.html | search |
![]() Buy the book! | |
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
You can use a transaction queue to communicate with a subprocess
using transactions. First use tq-create to create a transaction
queue communicating with a specified process. Then you can call
tq-enqueue to send a transaction.
The argument question is the outgoing message that starts the transaction. The argument fn is the function to call when the corresponding answer comes back; it is called with two arguments: closure, and the answer received.
The argument regexp is a regular expression that should match
text at the end of the entire answer, but nothing before; that's how
tq-enqueue determines where the answer ends.
The return value of tq-enqueue itself is not meaningful.
Transaction queues are implemented by means of a filter function. See section 37.9.2 Process Filter Functions.
| webmaster donations bookstore | delorie software privacy |
| Copyright © 2003 by The Free Software Foundation | Updated Jun 2003 |