From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: org-element-at-point keep-trail? Date: Thu, 09 Oct 2014 17:29:50 +0200 Message-ID: <87lhopi7m9.fsf@nicolasgoaziou.fr> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:41492) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XcFeW-0000NY-O2 for emacs-orgmode@gnu.org; Thu, 09 Oct 2014 11:29:24 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XcFeP-0003pU-9Y for emacs-orgmode@gnu.org; Thu, 09 Oct 2014 11:29:16 -0400 Received: from relay3-d.mail.gandi.net ([2001:4b98:c:538::195]:47389) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XcFeP-0003pO-3Y for emacs-orgmode@gnu.org; Thu, 09 Oct 2014 11:29:09 -0400 In-Reply-To: (Jonathan Leech-Pepin's message of "Thu, 9 Oct 2014 08:28:12 -0400") 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: Jonathan Leech-Pepin Cc: Org Mode Mailing List Jonathan Leech-Pepin writes: > Previously, org-element-at-point had an optional keep-trail variable that > was supposed to show the siblings, parents, aunts/uncles, grandparents, etc. > > This feature no longer seems to be present. > > What would the process be now to obtain the parents of a given > element? (org-element-property :parent element) > > This would be useful for walking back up the tree to obtain a sparse-tree > structure for archiving (see: > http://lists.gnu.org/archive/html/emacs-orgmode/2014-10/msg00228.html) Note that `org-element-at-point' doesn't parse ancestors of headlines. You need `org-element-parse-buffer' for that. Regards, -- Nicolas Goaziou