changeset 70413:f97678528ae8

(ewoc-create, ewoc-set-hf): Use `insert' directly instead of a lambda expression that calls it.
author Thien-Thi Nguyen <ttn@gnuvola.org>
date Fri, 05 May 2006 23:17:49 +0000
parents 12496a44a084
children b835c65a2dc0
files lisp/emacs-lisp/ewoc.el
diffstat 1 files changed, 4 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/emacs-lisp/ewoc.el	Fri May 05 23:15:29 2006 +0000
+++ b/lisp/emacs-lisp/ewoc.el	Fri May 05 23:17:49 2006 +0000
@@ -322,8 +322,8 @@
       (unless header (setq header ""))
       (unless footer (setq footer ""))
       (setf (ewoc--node-start-marker dll) (copy-marker pos))
-      (let ((foot (ewoc--create-node footer (lambda (x) (insert footer)) pos))
-	    (head (ewoc--create-node header (lambda (x) (insert header)) pos)))
+      (let ((foot (ewoc--create-node footer 'insert pos))
+	    (head (ewoc--create-node header 'insert pos)))
 	(ewoc--node-enter-first dll head)
 	(ewoc--node-enter-last  dll foot)
 	(setf (ewoc--header new-ewoc) head)
@@ -601,8 +601,8 @@
   "Set the HEADER and FOOTER of EWOC."
   (setf (ewoc--node-data (ewoc--header ewoc)) header)
   (setf (ewoc--node-data (ewoc--footer ewoc)) footer)
-  (ewoc--refresh-node (lambda (x) (insert header)) (ewoc--header ewoc))
-  (ewoc--refresh-node (lambda (x) (insert footer)) (ewoc--footer ewoc)))
+  (ewoc--refresh-node 'insert (ewoc--header ewoc))
+  (ewoc--refresh-node 'insert (ewoc--footer ewoc)))
 
 
 (provide 'ewoc)