My understanding is that org-end-of-meta-data should put point at the start of the 'real' contents of a heading. Meaning the first point where I might start making notes under a heading.

This expectation isn't matched in the example I give (which is different from the mentioned test). In my example, there is a heading, then several blank lines, then another heading at the same level as the first. A call to (end-of-meta-data t) goes all the way to the second heading, which surely should not count as contents of the first heading. For me, expected behavior is somewhere inside the contents of the heading.

I presume the test is to capture desired behavior when org-blank-before-new-entry is true?
If that's correct, then when org-blank-before-new-entry is true, maybe a call of (end-of-meta-data t) should skip to two lines after the metadata (possibly adding lines if necessary?)
In contrast, I disable org-blank-before-new-entry, and want point to go literally to the end of meta data, even if I have some blanks before existing contents.

I apologize if this seems nitpicky, but the structured nature of an org document allows for extremely accurate motion commands, and use of end-of-meta-data is an important part of that.
(And apologies Ihor for resending this to you, I managed to not click reply-all the first time around.)

On Sat, Oct 12, 2024 at 8:43 PM Ihor Radchenko <yantar92@posteo.net> wrote:
Benjamin McMillan <mcmillanbb@gmail.com> writes:

> Specifically, a call to (org-end-of-meta-data t) with point at the > on the
> following tree will go all the way to the next heading.
> In contrast, a call to just (org-end-of-meta-data), without the FULL flag,
> will go to the beginning of heading content, as expected.
> * >heading
>
>
> * another heading

This is intentional.

We have a test:

  ;; With option argument, skip empty lines, regular drawers and
  ;; clocking lines.
  (should
   (org-test-with-temp-text "* Headline\n\nContents"
     (org-end-of-meta-data t)
     (looking-at "Contents")))

May you please elaborate why you consider the current behavior to be a bug?

--
Ihor Radchenko // yantar92,
Org mode contributor,
Learn more about Org mode at <https://orgmode.org/>.
Support Org development at <https://liberapay.com/org-mode>,
or support my work at <https://liberapay.com/yantar92>