Commit 2e7ba2c2 authored by Stefan Monnier's avatar Stefan Monnier
Browse files

* lisp/emacs-lisp/tq.el (tq-create): Use a closure instead of `(lambda...).

parent 6de913c4
2013-10-07 Stefan Monnier <monnier@iro.umontreal.ca>
* emacs-lisp/tq.el (tq-create): Use a closure instead of `(lambda...).
* progmodes/ruby-mode.el: Fix recently added tests.
(ruby-smie-grammar): Add - and +.
(ruby-smie--redundant-do-p, ruby-smie--forward-id)
......
;;; tq.el --- utility to maintain a transaction queue
;;; tq.el --- utility to maintain a transaction queue -*- lexical-binding:t -*-
;; Copyright (C) 1985-1987, 1992, 2001-2013 Free Software Foundation,
;; Inc.
......@@ -87,8 +87,7 @@ to a tcp server on another machine."
(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)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment