[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Where is ewoc--node-delete
From: |
Stefan Reichör |
Subject: |
Re: Where is ewoc--node-delete |
Date: |
Sat, 20 May 2006 21:14:03 +0200 |
User-agent: |
Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) |
Thien-Thi Nguyen <address@hidden> writes:
> Stefan Reichör <address@hidden> writes:
>
>> Why was ewoc--node-delete removed?
>
> it was merged into its unique caller, the rationale being
> that "internal" (i.e., "ewoc--" -- note double hyphen) interfaces
> should not be multiplied needlessly.
>
>> So, how can one now remove a node?
>
> you can use `ewoc-filter' to remove nodes. for example:
>
> (defun my-delete-nodes-with-data (ewoc data)
> (ewoc-filter ewoc (lambda (d) (not (eq data d)))))
>
> if your program is calling `ewoc--node-delete' within a loop,
> that is a good chance to restructure it to let `ewoc-filter'
> do the looping.
>
> if not, perhaps it would be best to add `ewoc-delete-node'
> w/ the body of the former `ewoc--node-delete'.
I think the ewoc-delete-node is missing.
One could use the ewoc-filter trick above, but it is not the obvious
way to delete a node.
So please (re)add ewoc-delete-node.
Stefan.
- Where is ewoc--node-delete, Stefan Reichör, 2006/05/19
- Re: Where is ewoc--node-delete, Thien-Thi Nguyen, 2006/05/19
- Re: Where is ewoc--node-delete,
Stefan Reichör <=
- Re: Where is ewoc--node-delete, Thien-Thi Nguyen, 2006/05/21
- Re: Where is ewoc--node-delete, Stefan Monnier, 2006/05/21
- Re: Where is ewoc--node-delete, David Kastrup, 2006/05/21
- Re: Where is ewoc--node-delete, Stefan Monnier, 2006/05/21
- Re: Where is ewoc--node-delete, Thien-Thi Nguyen, 2006/05/21
- Re: Where is ewoc--node-delete, Thien-Thi Nguyen, 2006/05/21