From mboxrd@z Thu Jan 1 00:00:00 1970 From: Michael Brand Subject: Re: understanding the function outline-level Date: Thu, 9 Jun 2011 09:04:55 +0200 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([140.186.70.92]:37193) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QUZIh-0007rR-UM for emacs-orgmode@gnu.org; Thu, 09 Jun 2011 03:05:09 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QUZIY-0002W0-Bd for emacs-orgmode@gnu.org; Thu, 09 Jun 2011 03:05:07 -0400 Received: from mail-ey0-f169.google.com ([209.85.215.169]:48713) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QUZIY-0002Um-0z for emacs-orgmode@gnu.org; Thu, 09 Jun 2011 03:04:58 -0400 Received: by eyd9 with SMTP id 9so509034eyd.0 for ; Thu, 09 Jun 2011 00:04:55 -0700 (PDT) In-Reply-To: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Niels Giesen Cc: Org Mode On Tue, Jun 7, 2011 at 20:33, Niels Giesen 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 > =A0(outline-back-to-heading) > =A0(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