X-Git-Url: https://code.delx.au/gnu-emacs/blobdiff_plain/d8754ce5289bd855f19c9bd522c8aac7b79fa4e0..937640a621a4ce2e5e56eaecca37a2a28a584318:/lisp/emacs-lisp/tq.el diff --git a/lisp/emacs-lisp/tq.el b/lisp/emacs-lisp/tq.el index 3a32c0b516..f7db20859d 100644 --- a/lisp/emacs-lisp/tq.el +++ b/lisp/emacs-lisp/tq.el @@ -1,6 +1,6 @@ ;;; tq.el --- utility to maintain a transaction queue -;; Copyright (C) 1985, 1986, 1987, 1992 Free Software Foundation, Inc. +;; Copyright (C) 1985, 1986, 1987, 1992, 2003 Free Software Foundation, Inc. ;; Author: Scott Draves ;; Maintainer: FSF @@ -25,7 +25,7 @@ ;; Boston, MA 02111-1307, USA. ;;; Commentary: - + ;; manages receiving a stream asynchronously, ;; parsing it into transactions, and then calling ;; handler functions @@ -49,8 +49,8 @@ to a tcp server on another machine." (concat " tq-temp-" (process-name process))))))) (set-process-filter process - (`(lambda (proc string) - (tq-filter '(, tq) string)))) + `(lambda (proc string) + (tq-filter ',tq string))) tq)) ;;; accessors @@ -68,7 +68,7 @@ to a tcp server on another machine." (defun tq-queue-head-closure (tq) (car (cdr (car (tq-queue tq))))) (defun tq-queue-empty (tq) (not (tq-queue tq))) (defun tq-queue-pop (tq) (setcar tq (cdr (car tq))) (null (car tq))) - + ;;; must add to queue before sending! (defun tq-enqueue (tq question regexp closure fn) @@ -120,4 +120,5 @@ that's how we tell where the answer ends." (provide 'tq) +;;; arch-tag: 65dea08c-4edd-4cde-83a5-e8a15b993b79 ;;; tq.el ends here