diff options
| author | Thien-Thi Nguyen | 2006-05-12 07:29:42 +0000 |
|---|---|---|
| committer | Thien-Thi Nguyen | 2006-05-12 07:29:42 +0000 |
| commit | 340d99457e1f4d0025e851ac64f4e869776b1f9c (patch) | |
| tree | 781841e9756b153db91775b29f1bdf2daeb5a8fe | |
| parent | 64c02ed0e9ad6d670aea9dd9e5696c70ce366714 (diff) | |
| download | emacs-340d99457e1f4d0025e851ac64f4e869776b1f9c.tar.gz emacs-340d99457e1f4d0025e851ac64f4e869776b1f9c.zip | |
(ewoc-refresh): Compute PP once before looping.
| -rw-r--r-- | lisp/ChangeLog | 4 | ||||
| -rw-r--r-- | lisp/emacs-lisp/ewoc.el | 6 |
2 files changed, 7 insertions, 3 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 1137154a099..a3c73415154 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,7 @@ | |||
| 1 | 2006-05-12 Thien-Thi Nguyen <ttn@gnu.org> | ||
| 2 | |||
| 3 | * emacs-lisp/ewoc.el (ewoc-refresh): Compute PP once before looping. | ||
| 4 | |||
| 1 | 2006-05-11 Glenn Morris <rgm@gnu.org> | 5 | 2006-05-11 Glenn Morris <rgm@gnu.org> |
| 2 | 6 | ||
| 3 | * calendar/calendar.el (diary-show-all-entries): Do not refer to | 7 | * calendar/calendar.el (diary-show-all-entries): Do not refer to |
diff --git a/lisp/emacs-lisp/ewoc.el b/lisp/emacs-lisp/ewoc.el index e5f1299333c..cd1f6d30b42 100644 --- a/lisp/emacs-lisp/ewoc.el +++ b/lisp/emacs-lisp/ewoc.el | |||
| @@ -527,11 +527,11 @@ number of elements needs to be refreshed." | |||
| 527 | (delete-region (ewoc--node-start-marker (ewoc--node-nth dll 1)) | 527 | (delete-region (ewoc--node-start-marker (ewoc--node-nth dll 1)) |
| 528 | (ewoc--node-start-marker footer)) | 528 | (ewoc--node-start-marker footer)) |
| 529 | (goto-char (ewoc--node-start-marker footer)) | 529 | (goto-char (ewoc--node-start-marker footer)) |
| 530 | (let ((node (ewoc--node-nth dll 1))) | 530 | (let ((pp (ewoc--pretty-printer ewoc)) |
| 531 | (node (ewoc--node-nth dll 1))) | ||
| 531 | (while (not (eq node footer)) | 532 | (while (not (eq node footer)) |
| 532 | (set-marker (ewoc--node-start-marker node) (point)) | 533 | (set-marker (ewoc--node-start-marker node) (point)) |
| 533 | (funcall (ewoc--pretty-printer ewoc) | 534 | (funcall pp (ewoc--node-data node)) |
| 534 | (ewoc--node-data node)) | ||
| 535 | (insert "\n") | 535 | (insert "\n") |
| 536 | (setq node (ewoc--node-next dll node))))) | 536 | (setq node (ewoc--node-next dll node))))) |
| 537 | (set-marker (ewoc--node-start-marker footer) (point)))) | 537 | (set-marker (ewoc--node-start-marker footer) (point)))) |