]> code.delx.au - gnu-emacs/blobdiff - lisp/emacs-lisp/tq.el
Update copyright year to 2016
[gnu-emacs] / lisp / emacs-lisp / tq.el
index a7bfd3ac66738fc7f936555b624ec58f0d66905c..c01262d48a9ab3d08e3436ad1ad3e44adbc6bb27 100644 (file)
@@ -1,10 +1,10 @@
-;;; tq.el --- utility to maintain a transaction queue
+;;; tq.el --- utility to maintain a transaction queue  -*- lexical-binding:t -*-
 
-;; Copyright (C) 1985, 1986, 1987, 1992, 2001, 2002, 2003, 2004,
-;;   2005, 2006, 2007, 2008 Free Software Foundation, Inc.
+;; Copyright (C) 1985-1987, 1992, 2001-2016 Free Software Foundation,
+;; Inc.
 
 ;; Author: Scott Draves <spot@cs.cmu.edu>
-;; Maintainer: FSF
+;; Maintainer: emacs-devel@gnu.org
 ;; Adapted-By: ESR
 ;; Keywords: extensions
 
@@ -85,9 +85,9 @@ to a tcp server on another machine."
                            (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)))
+                       (lambda (_proc string) (tq-filter tq string)))
     tq))
 
 (defun tq-queue-add (tq question re closure fn)
@@ -166,5 +166,4 @@ This produces more reliable results with some processes."
 
 (provide 'tq)
 
-;; arch-tag: 65dea08c-4edd-4cde-83a5-e8a15b993b79
 ;;; tq.el ends here