From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: [PARSER] Why not add properties to type 'org-data'? Date: Sat, 07 Sep 2013 09:15:14 +0200 Message-ID: <87li39yuf1.fsf@gmail.com> References: <87y57be0zv.fsf@gmail.com> <87zjrrytan.fsf@gmail.com> <87txhzdkrc.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:54407) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VICje-0002EN-Ua for emacs-orgmode@gnu.org; Sat, 07 Sep 2013 03:15:19 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VICjW-0002Uo-Fk for emacs-orgmode@gnu.org; Sat, 07 Sep 2013 03:15:10 -0400 Received: from mail-we0-x229.google.com ([2a00:1450:400c:c03::229]:49579) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VICjW-0002SM-8x for emacs-orgmode@gnu.org; Sat, 07 Sep 2013 03:15:02 -0400 Received: by mail-we0-f169.google.com with SMTP id t60so3771843wes.0 for ; Sat, 07 Sep 2013 00:15:01 -0700 (PDT) In-Reply-To: <87txhzdkrc.fsf@gmail.com> (Thorsten Jolitz's message of "Thu, 05 Sep 2013 23:24:55 +0200") 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: Thorsten Jolitz Cc: emacs-orgmode@gnu.org Hello, Thorsten Jolitz writes: > But sometimes, when only the parse-tree is needed, not the exporter > framework, it would indeed be useful if that highest level element the > others refer to as parent (org-data) would have some kind of unique > name/id. > > What would be the cost of introducing just one single unique attribute > like: > > ,------------------------------------------------------------------------- > | (org-data (:input-file /my/file.org) (section (:begin 1 :end 52 ...))) > `------------------------------------------------------------------------- > > or > > ,------------------------------------------------------------------------- > | (org-data (:ID 08AF34b12) (section (:begin 1 :end 52 ...))) > `------------------------------------------------------------------------- > > to make different parse trees distinguishable (and associated to the > parsed file)? There is no real cost in this case. Though, note that :input-file would not make for a unique identifier. On the other hand, what prevents you, once you have the parse tree, from tagging it with all the attributes you need? Regards, -- Nicolas Goaziou