emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Nicolas Goaziou <mail@nicolasgoaziou.fr>
To: Dieter Van Eessen <dieter.van.eessen@gmail.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: Usage of org-element api
Date: Fri, 16 Jan 2015 23:04:17 +0100	[thread overview]
Message-ID: <87ppaes7q6.fsf@nicolasgoaziou.fr> (raw)
In-Reply-To: <CAC2TPPhMuADn5cBeOYcK6nohFrSQ6TR_yH76DC9i8k91utRTHw@mail.gmail.com> (Dieter Van Eessen's message of "Fri, 16 Jan 2015 22:45:05 +0100")

Hello,

Dieter Van Eessen <dieter.van.eessen@gmail.com> writes:

> The reason I've tried this (and the internal org-element--parse-elements)
> is because I'd prefer not having to parse the whole buffer and still get
> the contents. The local parsing functions (org-element-at-point) and
> (org-element-context) don't contain content (stated in the org-element api,
> also tried it ).

`org-element-parse-buffer' takes into consideration narrowing. IOW,
narrow to the interesting part, then parse it.


Regards,

-- 
Nicolas Goaziou

  reply	other threads:[~2015-01-16 22:03 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-01-16 18:35 Usage of org-element api Dieter Van Eessen
2015-01-16 19:35 ` Rasmus
2015-01-16 21:45   ` Dieter Van Eessen
2015-01-16 22:04     ` Nicolas Goaziou [this message]
2015-01-17  0:33     ` Rasmus
2015-01-17 17:02       ` Dieter Van Eessen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87ppaes7q6.fsf@nicolasgoaziou.fr \
    --to=mail@nicolasgoaziou.fr \
    --cc=dieter.van.eessen@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).