John Kitchin <jkitc...@andrew.cmu.edu> writes: > Thanks! Here is what I am currently using: > > (defun canvas-org-get-heading-body () > "Return the body of the current heading up to the next heading." > (interactive) > (save-excursion > (unless (org-at-heading-p) > (org-previous-visible-heading 1)) > (org-end-of-meta-data) > (buffer-substring (point) > (progn (re-search-forward org-heading-regexp nil 'mv) > (line-beginning-position))))) > > So far it gets what I want. I am pretty sure I have reinvented this, > maybe even from code I wrote before... I couldn't find my answer on SO > or my blog though.
I don't think there's anything built-in, no. I have needed this in various places, and did something similar to the above, except with a combination of `org-back-to-heading', `org-end-of-meta-data', then `outline-next-heading'.