Benjamin McMillan <mcmilla...@gmail.com> writes: > 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.
Nope. It should "Skip planning line and properties drawer in current entry.", as per docstring. In other words, after the metadata. Sometimes, "after metadata" is on the next headline. For example, when headline has no contents at all: * Heading 1 * Immediately heading 2 > I presume the test is to capture desired behavior when > org-blank-before-new-entry is true? I doubt so. But I do not know exact reason. > 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. Surely not. (1) I still see not reason to break the existing behavior (and annoy users used to the existing one); (2) metadata is often followed by actual text in entry - org-blank-before-new-entry makes 0 sense in such scenarios; (3) org-end-of-metadata must not edit the buffer. It would be unexpected. > 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. You are free to move back if you are using `org-end-of-meta-data' from Elisp. This will be just as accurate. For now, I see no bug in your report. Everything works as per docstring. Canceled. I suspect that the problem you are really trying to solve is not with `org-end-of-meta-data', but with some other function/command that is using it. If I am right, we may better discuss that problem. -- 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>