From mboxrd@z Thu Jan 1 00:00:00 1970 From: John Kitchin Subject: Re: Function to return content of item Date: Sun, 07 May 2017 20:45:41 -0400 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:39541) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1d7Wo8-0002CK-3h for emacs-orgmode@gnu.org; Sun, 07 May 2017 20:45:49 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1d7Wo5-0003OI-23 for emacs-orgmode@gnu.org; Sun, 07 May 2017 20:45:48 -0400 Received: from mail-qt0-x234.google.com ([2607:f8b0:400d:c0d::234]:36428) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1d7Wo4-0003OC-U1 for emacs-orgmode@gnu.org; Sun, 07 May 2017 20:45:44 -0400 Received: by mail-qt0-x234.google.com with SMTP id m91so38722495qte.3 for ; Sun, 07 May 2017 17:45:44 -0700 (PDT) In-reply-to: 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" To: Richard Parsons Cc: emacs-orgmode@gnu.org I don't know of a function. Something like this may be what you want. not all elements have :contents-begin though (let ((el (org-element-context))) (buffer-substring-no-properties (org-element-property :contents-begin el) (org-element-property :contents-end el))) It also a little tricky to figure out what to do about subheadings. Do they count as content or not? Richard Parsons writes: > Hi there > > Is there a function that will give me the content of the current item? I > mean simply the text of the whole item without its heading or properties > drawer. > > It seems to me likely that such a function would exist, but I haven't been > able to find it in the documentation. > > Many thanks > Richard -- Professor John Kitchin Doherty Hall A207F Department of Chemical Engineering Carnegie Mellon University Pittsburgh, PA 15213 412-268-7803 @johnkitchin http://kitchingroup.cheme.cmu.edu