emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Where is ewoc--node-delete


From: Thien-Thi Nguyen
Subject: Re: Where is ewoc--node-delete
Date: 19 May 2006 18:22:20 -0400
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.4

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'.

thi




reply via email to

[Prev in Thread] Current Thread [Next in Thread]