aboutsummaryrefslogtreecommitdiffstats
path: root/lispref
diff options
context:
space:
mode:
authorMiles Bader2006-04-16 02:17:00 +0000
committerMiles Bader2006-04-16 02:17:00 +0000
commit51fa34bc588ffe6b6d6d20791ffaa3a855873e13 (patch)
tree565fb7d3a99103c90d41ba3d37e9c5c24cb77139 /lispref
parent21acd4c9d34373a2798a13fabe0e5f36313e6316 (diff)
downloademacs-51fa34bc588ffe6b6d6d20791ffaa3a855873e13.tar.gz
emacs-51fa34bc588ffe6b6d6d20791ffaa3a855873e13.zip
Revision: emacs@sv.gnu.org/emacs--devo--0--patch-220
Creator: Michael Olson <mwolson@gnu.org> Improve tq.el. * lispref/processes.texi (Transaction Queues): Mention the new optional `delay-question' argument for `tq-enqueue'. * lisp/emacs-lisp/tq.el: Improve comments. (tq-queue-head-question): New accessor function. (tq-queue-head-regexp, tq-queue-head-closure, tq-queue-head-fn): Update for modified queue structure. (tq-queue-add): Accept `question' argument. (tq-queue-pop): If a question is pending, send it. (tq-enqueue): Accept new optional argument `delay-question'. If this is non-nil, and at least one other question is pending a response, queue the question rather than sending it immediately.
Diffstat (limited to 'lispref')
-rw-r--r--lispref/ChangeLog5
-rw-r--r--lispref/processes.texi6
2 files changed, 10 insertions, 1 deletions
diff --git a/lispref/ChangeLog b/lispref/ChangeLog
index f16982eb414..c3591cbb64a 100644
--- a/lispref/ChangeLog
+++ b/lispref/ChangeLog
@@ -1,3 +1,8 @@
12006-04-15 Michael Olson <mwolson@gnu.org>
2
3 * processes.texi (Transaction Queues): Mention the new optional
4 `delay-question' argument for `tq-enqueue'.
5
12006-04-13 Bill Wohler <wohler@newt.com> 62006-04-13 Bill Wohler <wohler@newt.com>
2 7
3 * customize.texi (Common Keywords): Use dotted notation for 8 * customize.texi (Common Keywords): Use dotted notation for
diff --git a/lispref/processes.texi b/lispref/processes.texi
index 5f0cfb0edf0..44da398770d 100644
--- a/lispref/processes.texi
+++ b/lispref/processes.texi
@@ -1508,7 +1508,7 @@ process, or it may be a TCP connection to a server, possibly on another
1508machine. 1508machine.
1509@end defun 1509@end defun
1510 1510
1511@defun tq-enqueue queue question regexp closure fn 1511@defun tq-enqueue queue question regexp closure fn &optional delay-question
1512This function sends a transaction to queue @var{queue}. Specifying the 1512This function sends a transaction to queue @var{queue}. Specifying the
1513queue has the effect of specifying the subprocess to talk to. 1513queue has the effect of specifying the subprocess to talk to.
1514 1514
@@ -1521,6 +1521,10 @@ The argument @var{regexp} is a regular expression that should match
1521text at the end of the entire answer, but nothing before; that's how 1521text at the end of the entire answer, but nothing before; that's how
1522@code{tq-enqueue} determines where the answer ends. 1522@code{tq-enqueue} determines where the answer ends.
1523 1523
1524If the argument @var{delay-question} is non-nil, delay sending this
1525question until the process has finished replying to any previous
1526questions. This produces more reliable results with some processes."
1527
1524The return value of @code{tq-enqueue} itself is not meaningful. 1528The return value of @code{tq-enqueue} itself is not meaningful.
1525@end defun 1529@end defun
1526 1530