Thanks!
Did not know about `org-with-limited-levels'.
After reading the function docstring again, I see that it behaved
correctly.
However, it seems that `org-back-to-heading' is not really used
according to the docstring in the org source code:
- `org-agenda' with subtree restriction: the results
Hllo,
yanta...@gmail.com writes:
> Consider calling =org-back-to-heading= for the following org entry:
>
> #+begin_src org
> * Sample entry
>
> Some text.
>
> *** TODO Inline task
> *** END
>
> Some more text.
>
> ->(point)<-
>
> Yet another piece of text.
> #+end_src
>
>
Consider calling =org-back-to-heading= for the following org entry:
#+begin_src org
* Sample entry
Some text.
*** TODO Inline task
*** END
Some more text.
->(point)<-
Yet another piece of text.
#+end_src
The expected behaviour is that the point moves to the first lin