* lisp/emacs-lisp/tq.el: Small grammar fix in comments.
(tq-enqueue): Check for existence of queue rather than the head queue
item's question, which was a no-op.
(tq-filter, tq-process-buffer): Make sure the process buffer exists
before making it the current buffer.
* lispref/processes.texi (Transaction Queues): Remove stray quote
character.
Revision: emacs@sv.gnu.org/emacs--devo--0--patch-411
Creator: Michael Olson <mwolson@gnu.org>
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.