On Tue, Jun 7, 2011 at 20:33, Niels Giesen <niels.gie...@gmail.com> wrote: > Some prodding about led me to believe the searching in > `outline-back-to-heading' is your suspect (but I have not investigated > this further). At least > > (progn > (outline-back-to-heading) > (outline-level)) > > Returns a reasonable answer each time I run it.
Aha, yes this is what I was missing. I thought that o*-back-to-heading is only to ensure that point is at the right place and that this could be emulated by manually moving point, before calling outline-level. Now I understand that there is more. Thank you all for the explanations. With this help I was able to track down the buglet for which I will send a patch in a moment. Michael