diff options
| author | Stefan Monnier | 2000-11-06 07:13:07 +0000 |
|---|---|---|
| committer | Stefan Monnier | 2000-11-06 07:13:07 +0000 |
| commit | 6d84ac858735bd5331195af4ebfb2d872d34f71e (patch) | |
| tree | 864643e3755aeedf6d427ccce44b7a65c85d5441 | |
| parent | a88e99b5eeae9019030213bc1e5ef2456fa51f26 (diff) | |
| download | emacs-6d84ac858735bd5331195af4ebfb2d872d34f71e.tar.gz emacs-6d84ac858735bd5331195af4ebfb2d872d34f71e.zip | |
(ewoc-goto-prev, ewoc-goto-next):
Don't pass default arg to ewoc-locate.
(ewoc-collect): Return result in the right order.
| -rw-r--r-- | lisp/emacs-lisp/ewoc.el | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lisp/emacs-lisp/ewoc.el b/lisp/emacs-lisp/ewoc.el index 90d2addca6b..dc8c3b6d2c1 100644 --- a/lisp/emacs-lisp/ewoc.el +++ b/lisp/emacs-lisp/ewoc.el | |||
| @@ -504,7 +504,7 @@ The pretty-printer that for EWOC will be called for all NODES." | |||
| 504 | Don't move if we are at the first element, or if EWOC is empty. | 504 | Don't move if we are at the first element, or if EWOC is empty. |
| 505 | Returns the node we moved to." | 505 | Returns the node we moved to." |
| 506 | (ewoc--set-buffer-bind-dll-let* ewoc | 506 | (ewoc--set-buffer-bind-dll-let* ewoc |
| 507 | ((node (ewoc-locate ewoc (point) (ewoc--last-node ewoc)))) | 507 | ((node (ewoc-locate ewoc (point)))) |
| 508 | (when node | 508 | (when node |
| 509 | ;; If we were past the last element, first jump to it. | 509 | ;; If we were past the last element, first jump to it. |
| 510 | (when (>= (point) (ewoc--node-start-marker (ewoc--node-right node))) | 510 | (when (>= (point) (ewoc--node-start-marker (ewoc--node-right node))) |
| @@ -521,7 +521,7 @@ Returns the node we moved to." | |||
| 521 | "Move point to the ARGth next element. | 521 | "Move point to the ARGth next element. |
| 522 | Returns the node (or nil if we just passed the last node)." | 522 | Returns the node (or nil if we just passed the last node)." |
| 523 | (ewoc--set-buffer-bind-dll-let* ewoc | 523 | (ewoc--set-buffer-bind-dll-let* ewoc |
| 524 | ((node (ewoc-locate ewoc (point) (ewoc--last-node ewoc)))) | 524 | ((node (ewoc-locate ewoc (point)))) |
| 525 | (while (and node (> arg 0)) | 525 | (while (and node (> arg 0)) |
| 526 | (setq arg (1- arg)) | 526 | (setq arg (1- arg)) |
| 527 | (setq node (ewoc--node-next dll node))) | 527 | (setq node (ewoc--node-next dll node))) |
| @@ -578,7 +578,7 @@ remaining arguments will be passed to PREDICATE." | |||
| 578 | (if (apply predicate (ewoc--node-data node) args) | 578 | (if (apply predicate (ewoc--node-data node) args) |
| 579 | (push (ewoc--node-data node) result)) | 579 | (push (ewoc--node-data node) result)) |
| 580 | (setq node (ewoc--node-prev dll node))) | 580 | (setq node (ewoc--node-prev dll node))) |
| 581 | result)) | 581 | (nreverse result))) |
| 582 | 582 | ||
| 583 | (defun ewoc-buffer (ewoc) | 583 | (defun ewoc-buffer (ewoc) |
| 584 | "Return the buffer that is associated with EWOC. | 584 | "Return the buffer that is associated with EWOC. |