comparison lispref/processes.texi @ 90384:c156f6a9e7b5

Revision: emacs@sv.gnu.org/emacs--unicode--0--patch-56 Merge from emacs--devo--0 Patches applied: * emacs--devo--0 (patch 204-225) - Update from CVS - Sync from erc--emacs--0 - Merge from gnus--rel--5.10 - Improve tq.el. - Update from CVS: src/puresize.h (PURESIZE_RATIO): Reduce to 10/6. * gnus--rel--5.10 (patch 81-85) - Update from CVS - Merge from emacs--devo--0
author Miles Bader <miles@gnu.org>
date Mon, 17 Apr 2006 08:41:12 +0000
parents e6bf73e43cf4 db4c2d467e9a
children a5812696f7bf
comparison
equal deleted inserted replaced
90383:ab20fb198dda 90384:c156f6a9e7b5
1506 capable of sending and receiving streams of bytes. It may be a child 1506 capable of sending and receiving streams of bytes. It may be a child
1507 process, or it may be a TCP connection to a server, possibly on another 1507 process, or it may be a TCP connection to a server, possibly on another
1508 machine. 1508 machine.
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
1512 This function sends a transaction to queue @var{queue}. Specifying the 1512 This function sends a transaction to queue @var{queue}. Specifying the
1513 queue has the effect of specifying the subprocess to talk to. 1513 queue has the effect of specifying the subprocess to talk to.
1514 1514
1515 The argument @var{question} is the outgoing message that starts the 1515 The argument @var{question} is the outgoing message that starts the
1516 transaction. The argument @var{fn} is the function to call when the 1516 transaction. The argument @var{fn} is the function to call when the
1518 @var{closure}, and the answer received. 1518 @var{closure}, and the answer received.
1519 1519
1520 The argument @var{regexp} is a regular expression that should match 1520 The argument @var{regexp} is a regular expression that should match
1521 text at the end of the entire answer, but nothing before; that's how 1521 text 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
1524 If the argument @var{delay-question} is non-nil, delay sending this
1525 question until the process has finished replying to any previous
1526 questions. This produces more reliable results with some processes."
1523 1527
1524 The return value of @code{tq-enqueue} itself is not meaningful. 1528 The return value of @code{tq-enqueue} itself is not meaningful.
1525 @end defun 1529 @end defun
1526 1530
1527 @defun tq-close queue 1531 @defun tq-close queue