Function: tq-create

tq-create is an autoloaded and byte-compiled function defined in tq.el.gz.

Signature

(tq-create PROCESS)

Documentation

Create and return a transaction queue communicating with PROCESS.

PROCESS should be a subprocess capable of sending and receiving streams of bytes. It may be a local process, or it may be connected to a tcp server on another machine.

View in manual

Source Code

;; Defined in /usr/src/emacs/lisp/emacs-lisp/tq.el.gz
;;; Core functionality

;;;###autoload
(defun tq-create (process)
  "Create and return a transaction queue communicating with PROCESS.
PROCESS should be a subprocess capable of sending and receiving
streams of bytes.  It may be a local process, or it may be connected
to a tcp server on another machine."
  (let ((tq (cons nil (cons process
			    (generate-new-buffer
			     (concat " tq-temp-"
				     (process-name process)))))))
    (buffer-disable-undo (tq-buffer tq))
    (set-process-filter process
			(lambda (_proc string) (tq-filter tq string)))
    tq))