aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThien-Thi Nguyen2007-03-30 16:12:19 +0000
committerThien-Thi Nguyen2007-03-30 16:12:19 +0000
commitf718c2fc7fdf6168e3e78ff761294dbd77cf1d4d (patch)
tree0039101814315e3587e7ca779856ada9ca7670b0
parent8ad6289625d1be3f82bfa5ccc84f265911874b3d (diff)
downloademacs-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/ChangeLog6
-rw-r--r--lisp/emacs-lisp/ewoc.el9
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 @@
12007-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
12007-03-30 Juanma Barranquero <lekktu@gmail.com> 72007-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.
196Fourth arg DLL -- from `(ewoc--dll EWOC)' -- is for internal purposes.
196Call PRETTY-PRINTER with point at NODE's start, thus pushing back 197Call PRETTY-PRINTER with point at NODE's start, thus pushing back
197NODE and leaving the new node's start there. Return the new node." 198NODE 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.
302Return the new node." 303Return 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.