From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: API problem Date: Wed, 22 Jan 2014 23:23:18 +0100 Message-ID: <87iotbvep5.fsf@gmail.com> References: <8738kgvthz.fsf@gmail.com> <87r47zvjgb.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:34937) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W66CO-0006hW-Kz for emacs-orgmode@gnu.org; Wed, 22 Jan 2014 17:23:12 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1W66CG-0007EY-7k for emacs-orgmode@gnu.org; Wed, 22 Jan 2014 17:23:04 -0500 Received: from mail-wi0-x232.google.com ([2a00:1450:400c:c05::232]:35999) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W66CG-0007EM-18 for emacs-orgmode@gnu.org; Wed, 22 Jan 2014 17:22:56 -0500 Received: by mail-wi0-f178.google.com with SMTP id cc10so1197441wib.5 for ; Wed, 22 Jan 2014 14:22:55 -0800 (PST) In-Reply-To: (Cecil Westerhof's message of "Wed, 22 Jan 2014 22:57:37 +0100") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Cecil Westerhof Cc: emacs-orgmode@gnu.org Hello, Cecil Westerhof writes: > But one thing I do not understand. When you do an org-list-write-struct, > you want to change the structure. So why is old-struct optional? Good question. IIRC, it's just syntactic sugar since `org-list-write-struct' will do the `copy-tree' for you in most situations (i.e., when you don't use a function that modifies structure by side-effect). Regards, -- Nicolas Goaziou