emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] org-element-at-point keep-trail?


From: Nicolas Goaziou
Subject: Re: [O] org-element-at-point keep-trail?
Date: Thu, 09 Oct 2014 17:29:50 +0200

Jonathan Leech-Pepin <address@hidden> 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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]