From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: Usage of org-element api Date: Fri, 16 Jan 2015 23:04:17 +0100 Message-ID: <87ppaes7q6.fsf@nicolasgoaziou.fr> References: <87r3uu34dm.fsf@gmx.us> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:45487) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YCEz8-0006AQ-Qq for emacs-orgmode@gnu.org; Fri, 16 Jan 2015 17:03:19 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YCEz4-0001EY-KX for emacs-orgmode@gnu.org; Fri, 16 Jan 2015 17:03:18 -0500 Received: from relay4-d.mail.gandi.net ([2001:4b98:c:538::196]:36713) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YCEz4-0001Bl-Ep for emacs-orgmode@gnu.org; Fri, 16 Jan 2015 17:03:14 -0500 In-Reply-To: (Dieter Van Eessen's message of "Fri, 16 Jan 2015 22:45:05 +0100") 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: Dieter Van Eessen Cc: emacs-orgmode@gnu.org Hello, Dieter Van Eessen 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