That is very kind of you - many thanks indeed for your assistance.
On Mon, May 8, 2017 at 4:05 PM, John Kitchin
wrote:
> I think this is basically what you are looking for.
>
> (defun org-heading-content ()
> (interactive)
> (let (bp ep)
> (setq bp (save-excursion
>(or (
I think this is basically what you are looking for.
(defun org-heading-content ()
(interactive)
(let (bp ep)
(setq bp (save-excursion
(or (and (outline-previous-heading)
(progn (org-end-of-meta-data)
(point)))
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 f
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