Bastien <b...@gnu.org> writes: Hi Bastien,
> Thorsten Jolitz <tjol...@gmail.com> writes: > >> How is this function supposed to be called from another program? Why >> does it have (interactive "P") if the prefix arg is never used? Or do I >> simply miss something important here? > > I think you miss the fact that it displays a path only if the headline > is not a top-level headline. Not really, on the same 2nd level headline calling it with M-x and M-: give different messages, and only in the first case a useful one. With point at start of ** 2nd level #+begin_src org * 1st level Hello ** 2nd level Work #+end_src ,----------------------------------------------------- | Eval: (org-display-outline-path) | Eval: (call-interactively 'org-display-outline-path) `----------------------------------------------------- both print this in the message buffer ,-------------------------------------- | byte-code: End of buffer | #("1st level" 0 9 (face org-level-1)) `-------------------------------------- while using M-x shows the string "1st Level" as expected. -- cheers, Thorsten