diff options
| author | Eric S. Raymond | 1992-07-15 18:48:42 +0000 |
|---|---|---|
| committer | Eric S. Raymond | 1992-07-15 18:48:42 +0000 |
| commit | 83023647e0c1769ad958d0c87618955f04d6b618 (patch) | |
| tree | 883a20a46c0668fea1355c3864a57639b2121f13 | |
| parent | 8c45d5227ade3847c62d328e1a560c87837b96e7 (diff) | |
| download | emacs-83023647e0c1769ad958d0c87618955f04d6b618.tar.gz emacs-83023647e0c1769ad958d0c87618955f04d6b618.zip | |
*** empty log message ***
| -rw-r--r-- | lisp/emacs-lisp/tq.el | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/lisp/emacs-lisp/tq.el b/lisp/emacs-lisp/tq.el index e9d3a80af54..4a5b155a55e 100644 --- a/lisp/emacs-lisp/tq.el +++ b/lisp/emacs-lisp/tq.el | |||
| @@ -1,18 +1,21 @@ | |||
| 1 | ;;; tq.el --- utility to maintain a transaction queue | 1 | ;;; tq.el --- utility to maintain a transaction queue |
| 2 | 2 | ||
| 3 | ;;; Copyright (C) 1992 Scott Draves (spot@cs.cmu.edu) | 3 | ;; Author: Scott Draves <spot@cs.cmu.edu> |
| 4 | ;;; | 4 | ;; Adapted-By: ESR |
| 5 | |||
| 6 | ;; Commentary: | ||
| 7 | |||
| 5 | ;;; manages receiving a stream asynchronously, | 8 | ;;; manages receiving a stream asynchronously, |
| 6 | ;;; parsing it into transactions, and then calling | 9 | ;;; parsing it into transactions, and then calling |
| 7 | ;;; handler functions | 10 | ;;; handler functions |
| 8 | 11 | ||
| 9 | |||
| 10 | ;;; Our basic structure is the queue/process/buffer triple. Each entry | 12 | ;;; Our basic structure is the queue/process/buffer triple. Each entry |
| 11 | ;;; of the queue is a regexp/closure/function triple. We buffer | 13 | ;;; of the queue is a regexp/closure/function triple. We buffer |
| 12 | ;;; bytes from the process until we see the regexp at the head of the | 14 | ;;; bytes from the process until we see the regexp at the head of the |
| 13 | ;;; queue. Then we call the function with the closure and the | 15 | ;;; queue. Then we call the function with the closure and the |
| 14 | ;;; collected bytes. | 16 | ;;; collected bytes. |
| 15 | 17 | ||
| 18 | ;;; Code: | ||
| 16 | 19 | ||
| 17 | (provide 'tq) | 20 | (provide 'tq) |
| 18 | 21 | ||