emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* org-element-at-point keep-trail?
@ 2014-10-09 12:28 Jonathan Leech-Pepin
  2014-10-09 15:29 ` Nicolas Goaziou
  0 siblings, 1 reply; 2+ messages in thread
From: Jonathan Leech-Pepin @ 2014-10-09 12:28 UTC (permalink / raw)
  To: Org Mode Mailing List

[-- Attachment #1: Type: text/plain, Size: 464 bytes --]

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?

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)

Regards,
Jonathan

[-- Attachment #2: Type: text/html, Size: 645 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: org-element-at-point keep-trail?
  2014-10-09 12:28 org-element-at-point keep-trail? Jonathan Leech-Pepin
@ 2014-10-09 15:29 ` Nicolas Goaziou
  0 siblings, 0 replies; 2+ messages in thread
From: Nicolas Goaziou @ 2014-10-09 15:29 UTC (permalink / raw)
  To: Jonathan Leech-Pepin; +Cc: Org Mode Mailing List

Jonathan Leech-Pepin <jonathan.leechpepin@gmail.com> 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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2014-10-09 15:29 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-10-09 12:28 org-element-at-point keep-trail? Jonathan Leech-Pepin
2014-10-09 15:29 ` Nicolas Goaziou

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).