From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan =?iso-8859-1?Q?Reich=F6r?= Newsgroups: gmane.emacs.devel Subject: Re: Where is ewoc--node-delete Date: Sat, 20 May 2006 21:14:03 +0200 Message-ID: <87ves0fr0k.fsf@utanet.at> References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: sea.gmane.org 1148180470 27032 80.91.229.2 (21 May 2006 03:01:10 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 21 May 2006 03:01:10 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun May 21 05:01:07 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1FheBk-0008BS-6t for ged-emacs-devel@m.gmane.org; Sun, 21 May 2006 05:01:04 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FheBj-0004HU-Sn for ged-emacs-devel@m.gmane.org; Sat, 20 May 2006 23:01:03 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1FhWwx-0006BX-3B for emacs-devel@gnu.org; Sat, 20 May 2006 15:17:19 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1FhWwt-0006AE-Lu for emacs-devel@gnu.org; Sat, 20 May 2006 15:17:18 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FhWwt-0006A7-Is for emacs-devel@gnu.org; Sat, 20 May 2006 15:17:15 -0400 Original-Received: from [213.90.36.46] (helo=tatiana.utanet.at) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_3DES_EDE_CBC_SHA:24) (Exim 4.52) id 1FhX0O-0006Xf-Ro; Sat, 20 May 2006 15:20:53 -0400 Original-Received: from aki.utanet.at ([213.90.36.56]) by tatiana.utanet.at with esmtp (Exim 4.60) (envelope-from ) id 1FhWwi-0007YG-Fn; Sat, 20 May 2006 21:17:04 +0200 Original-Received: from linzu3-217-64.utaonline.at ([212.152.217.64] helo=localhost.localdomain) by aki.utanet.at with esmtp (Exim 4.50) id 1FhWwY-00088k-3J; Sat, 20 May 2006 21:17:04 +0200 Original-To: Thien-Thi Nguyen In-Reply-To: (Thien-Thi Nguyen's message of "19 May 2006 18:22:20 -0400") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) X-Mailman-Approved-At: Sat, 20 May 2006 23:00:52 -0400 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:54920 Archived-At: Thien-Thi Nguyen writes: > Stefan Reich=F6r 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. >=20=20 >> 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.