]> code.delx.au - gnu-emacs/blobdiff - lisp/emacs-lisp/ewoc.el
Replace lexical-let by lexical-binding (except Gnus, CEDET, ERT).
[gnu-emacs] / lisp / emacs-lisp / ewoc.el
index 4fd87209b389b2291b4b0a69f291f193c4f4d056..9e214a9703c2a4622c4753e863569a233654e82e 100644 (file)
@@ -1,4 +1,4 @@
-;;; ewoc.el --- utility to maintain a view of a list of objects in a buffer
+;;; ewoc.el --- utility to maintain a view of a list of objects in a buffer  -*- lexical-binding: t -*-
 
 ;; Copyright (C) 1991-2012 Free Software Foundation, Inc.
 
@@ -216,10 +216,9 @@ NODE and leaving the new node's start there.  Return the new node."
     (ewoc--adjust m (point) R dll)))
 
 (defun ewoc--wrap (func)
-  (lexical-let ((ewoc--user-pp func))
-    (lambda (data)
-      (funcall ewoc--user-pp data)
-      (insert "\n"))))
+  (lambda (data)
+    (funcall func data)
+    (insert "\n")))
 
 \f
 ;;; ===========================================================================