diff options
| author | Thien-Thi Nguyen | 2006-05-05 23:19:52 +0000 |
|---|---|---|
| committer | Thien-Thi Nguyen | 2006-05-05 23:19:52 +0000 |
| commit | d91bd17cb6e8699e64411465b84960e088e1cd10 (patch) | |
| tree | e29ab5d397d5c28c8f06074b53277326fa4ac56c | |
| parent | fc634b385b55f396dac05ba8d394762ccb5a354d (diff) | |
| download | emacs-d91bd17cb6e8699e64411465b84960e088e1cd10.tar.gz emacs-d91bd17cb6e8699e64411465b84960e088e1cd10.zip | |
(ewoc-create, ewoc-set-hf): Use `insert'
directly instead of a lambda expression that calls it.
| -rw-r--r-- | lisp/ChangeLog | 5 | ||||
| -rw-r--r-- | lisp/emacs-lisp/ewoc.el | 8 |
2 files changed, 9 insertions, 4 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index fb36605499a..f57eba17275 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2006-05-06 Thien-Thi Nguyen <ttn@gnu.org> | ||
| 2 | |||
| 3 | * emacs-lisp/ewoc.el (ewoc-create, ewoc-set-hf): Use `insert' | ||
| 4 | directly instead of a lambda expression that calls it. | ||
| 5 | |||
| 1 | 2006-05-06 Kim F. Storm <storm@cua.dk> | 6 | 2006-05-06 Kim F. Storm <storm@cua.dk> |
| 2 | 7 | ||
| 3 | * avoid.el (mouse-avoidance-point-position): Use posn-at-point | 8 | * avoid.el (mouse-avoidance-point-position): Use posn-at-point |
diff --git a/lisp/emacs-lisp/ewoc.el b/lisp/emacs-lisp/ewoc.el index 085ae532a63..74931c3c34a 100644 --- a/lisp/emacs-lisp/ewoc.el +++ b/lisp/emacs-lisp/ewoc.el | |||
| @@ -322,8 +322,8 @@ be inserted at the bottom of the ewoc." | |||
| 322 | (unless header (setq header "")) | 322 | (unless header (setq header "")) |
| 323 | (unless footer (setq footer "")) | 323 | (unless footer (setq footer "")) |
| 324 | (setf (ewoc--node-start-marker dll) (copy-marker pos)) | 324 | (setf (ewoc--node-start-marker dll) (copy-marker pos)) |
| 325 | (let ((foot (ewoc--create-node footer (lambda (x) (insert footer)) pos)) | 325 | (let ((foot (ewoc--create-node footer 'insert pos)) |
| 326 | (head (ewoc--create-node header (lambda (x) (insert header)) pos))) | 326 | (head (ewoc--create-node header 'insert pos))) |
| 327 | (ewoc--node-enter-first dll head) | 327 | (ewoc--node-enter-first dll head) |
| 328 | (ewoc--node-enter-last dll foot) | 328 | (ewoc--node-enter-last dll foot) |
| 329 | (setf (ewoc--header new-ewoc) head) | 329 | (setf (ewoc--header new-ewoc) head) |
| @@ -601,8 +601,8 @@ Return nil if the buffer has been deleted." | |||
| 601 | "Set the HEADER and FOOTER of EWOC." | 601 | "Set the HEADER and FOOTER of EWOC." |
| 602 | (setf (ewoc--node-data (ewoc--header ewoc)) header) | 602 | (setf (ewoc--node-data (ewoc--header ewoc)) header) |
| 603 | (setf (ewoc--node-data (ewoc--footer ewoc)) footer) | 603 | (setf (ewoc--node-data (ewoc--footer ewoc)) footer) |
| 604 | (ewoc--refresh-node (lambda (x) (insert header)) (ewoc--header ewoc)) | 604 | (ewoc--refresh-node 'insert (ewoc--header ewoc)) |
| 605 | (ewoc--refresh-node (lambda (x) (insert footer)) (ewoc--footer ewoc))) | 605 | (ewoc--refresh-node 'insert (ewoc--footer ewoc))) |
| 606 | 606 | ||
| 607 | 607 | ||
| 608 | (provide 'ewoc) | 608 | (provide 'ewoc) |