From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: missing element in org-element.el Date: Fri, 19 Apr 2013 18:31:28 +0200 Message-ID: <87txn2o527.fsf@gmail.com> References: <87wqryd24s.fsf@gmail.com> <8761zipowf.fsf@gmail.com> <87sj2mcz39.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([208.118.235.92]:42026) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UTEDo-0001jk-07 for emacs-orgmode@gnu.org; Fri, 19 Apr 2013 12:31:38 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UTEDm-0006b6-C6 for emacs-orgmode@gnu.org; Fri, 19 Apr 2013 12:31:35 -0400 Received: from mail-we0-x22f.google.com ([2a00:1450:400c:c03::22f]:34857) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UTEDm-0006av-65 for emacs-orgmode@gnu.org; Fri, 19 Apr 2013 12:31:34 -0400 Received: by mail-we0-f175.google.com with SMTP id t11so3766259wey.6 for ; Fri, 19 Apr 2013 09:31:33 -0700 (PDT) In-Reply-To: <87sj2mcz39.fsf@gmail.com> (Thorsten Jolitz's message of "Fri, 19 Apr 2013 17:35:54 +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 Thorsten Jolitz writes: > What about > > ,---------------- > | latex-or-entity > | plain-link > | text-markup > `---------------- > > in > > ,--------------------------------------------------------------------------------- > | (defconst org-element-all-successors > | '(export-snippet footnote-reference inline-babel-call inline-src-block > | latex-or-entity line-break link macro plain-link radio-target > | statistics-cookie sub/superscript table-cell target > | text-markup timestamp) > | "Complete list of successors.") > `--------------------------------------------------------------------------------- > > ? > > They seem to be neither elements nor objects - are they a kind of > 'abstract categories' for some object types? > > And I must admit that I'm not sure about the exact meaning of > 'successors'. You describe elements and objects in detail in the > comment-section of org-element.el, but don't mention 'successors'. I do, in the "Objects" section. Successors are functions used to find the next object of a given type. Some objects are so close that they can share the same successor. Hence `text-markup' is a successor shared by underline, code, verbatim, bold, italic and strike-through objects. See `org-element-object-successor-alist' for more information. Also, see comments above `org-element--parse-elements' to get information about the algorithm used for object research. > I hope I don't go on your nerves with my questions, but I'm trying to > understand how you modeled an Org-file and its not all clear to me. There are comments at the beginning of each section in the file: these should give you some answers. Don't hesitate to ask if they don't fulfill your needs. Regards, -- Nicolas Goaziou