[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] Function to return content of item
From: |
John Kitchin |
Subject: |
Re: [O] Function to return content of item |
Date: |
Sun, 07 May 2017 20:45:41 -0400 |
User-agent: |
mu4e 0.9.19; emacs 25.1.1 |
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