Morgan Smith <[email protected]> writes: > I just looked at the definition of `org-back-to-heading' (called by > `org-entry-beginning-position') for the first time and it seems to be > exactly what I wrote using `org-element-lineage' except it handles the > case of being at the end of an inline task so it is superior. So I will > go back to using `org-entry-beginning-position'. It is unfortunate that > it returns the point instead of the element but that seems minor.
+1 > If you still have icky feelings about me touching the point, feel free > to write (or delegate the writing of) a helper function that returns the > element of the local heading. I think such a function would indeed be > quite useful and well loved. Yes, it will be useful. However, we also need to make sure that we actually use it across the code base after adding. > Subject: [PATCH 1/2] Testing: org-habit: Run tests on inlinetasks as well > ... > Subject: [PATCH 2/2] org-habit: Fix recent regressions Applied, onto main, documenting the new INLINE-P argument. https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=52f504569 https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=79fed266b -- Ihor Radchenko // yantar92, Org mode maintainer, 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>
