diff options
| author | Thien-Thi Nguyen | 2007-03-30 16:12:19 +0000 |
|---|---|---|
| committer | Thien-Thi Nguyen | 2007-03-30 16:12:19 +0000 |
| commit | f718c2fc7fdf6168e3e78ff761294dbd77cf1d4d (patch) | |
| tree | 0039101814315e3587e7ca779856ada9ca7670b0 | |
| parent | 8ad6289625d1be3f82bfa5ccc84f265911874b3d (diff) | |
| download | emacs-f718c2fc7fdf6168e3e78ff761294dbd77cf1d4d.tar.gz emacs-f718c2fc7fdf6168e3e78ff761294dbd77cf1d4d.zip | |
(ewoc--insert-new-node): Take additional arg DLL.
Use it, passed in explicitly, instead of from the dynamic binding.
(ewoc-create, ewoc-enter-before): Update to use new call sequence.
| -rw-r--r-- | lisp/ChangeLog | 6 | ||||
| -rw-r--r-- | lisp/emacs-lisp/ewoc.el | 9 |
2 files changed, 11 insertions, 4 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 7e003dfb970..654f1af6526 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,9 @@ | |||
| 1 | 2007-03-30 Thien-Thi Nguyen <ttn@gnu.org> | ||
| 2 | |||
| 3 | * emacs-lisp/ewoc.el (ewoc--insert-new-node): Take additional arg DLL. | ||
| 4 | Use it, passed in explicitly, instead of from the dynamic binding. | ||
| 5 | (ewoc-create, ewoc-enter-before): Update to use new call sequence. | ||
| 6 | |||
| 1 | 2007-03-30 Juanma Barranquero <lekktu@gmail.com> | 7 | 2007-03-30 Juanma Barranquero <lekktu@gmail.com> |
| 2 | 8 | ||
| 3 | * simple.el (blink-matching-open): When in minibuffer, don't | 9 | * simple.el (blink-matching-open): When in minibuffer, don't |
diff --git a/lisp/emacs-lisp/ewoc.el b/lisp/emacs-lisp/ewoc.el index 3649757f782..9fec81ec2c5 100644 --- a/lisp/emacs-lisp/ewoc.el +++ b/lisp/emacs-lisp/ewoc.el | |||
| @@ -191,8 +191,9 @@ BUT if it is the header or the footer in EWOC return nil instead." | |||
| 191 | (not (eq dll node)))) | 191 | (not (eq dll node)))) |
| 192 | (setq node (ewoc--node-right node)))))) | 192 | (setq node (ewoc--node-right node)))))) |
| 193 | 193 | ||
| 194 | (defun ewoc--insert-new-node (node data pretty-printer) | 194 | (defun ewoc--insert-new-node (node data pretty-printer dll) |
| 195 | "Insert before NODE a new node for DATA, displayed by PRETTY-PRINTER. | 195 | "Insert before NODE a new node for DATA, displayed by PRETTY-PRINTER. |
| 196 | Fourth arg DLL -- from `(ewoc--dll EWOC)' -- is for internal purposes. | ||
| 196 | Call PRETTY-PRINTER with point at NODE's start, thus pushing back | 197 | Call PRETTY-PRINTER with point at NODE's start, thus pushing back |
| 197 | NODE and leaving the new node's start there. Return the new node." | 198 | NODE and leaving the new node's start there. Return the new node." |
| 198 | (save-excursion | 199 | (save-excursion |
| @@ -262,8 +263,8 @@ fourth arg NOSEP non-nil inhibits this." | |||
| 262 | (unless header (setq header "")) | 263 | (unless header (setq header "")) |
| 263 | (unless footer (setq footer "")) | 264 | (unless footer (setq footer "")) |
| 264 | (setf (ewoc--node-start-marker dll) (copy-marker pos) | 265 | (setf (ewoc--node-start-marker dll) (copy-marker pos) |
| 265 | foot (ewoc--insert-new-node dll footer hf-pp) | 266 | foot (ewoc--insert-new-node dll footer hf-pp dll) |
| 266 | head (ewoc--insert-new-node foot header hf-pp) | 267 | head (ewoc--insert-new-node foot header hf-pp dll) |
| 267 | (ewoc--hf-pp new-ewoc) hf-pp | 268 | (ewoc--hf-pp new-ewoc) hf-pp |
| 268 | (ewoc--footer new-ewoc) foot | 269 | (ewoc--footer new-ewoc) foot |
| 269 | (ewoc--header new-ewoc) head)) | 270 | (ewoc--header new-ewoc) head)) |
| @@ -301,7 +302,7 @@ Return the new node." | |||
| 301 | "Enter a new element DATA before NODE in EWOC. | 302 | "Enter a new element DATA before NODE in EWOC. |
| 302 | Return the new node." | 303 | Return the new node." |
| 303 | (ewoc--set-buffer-bind-dll ewoc | 304 | (ewoc--set-buffer-bind-dll ewoc |
| 304 | (ewoc--insert-new-node node data (ewoc--pretty-printer ewoc)))) | 305 | (ewoc--insert-new-node node data (ewoc--pretty-printer ewoc) dll))) |
| 305 | 306 | ||
| 306 | (defun ewoc-next (ewoc node) | 307 | (defun ewoc-next (ewoc node) |
| 307 | "Return the node in EWOC that follows NODE. | 308 | "Return the node in EWOC that follows NODE. |