[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] understanding the function outline-level

From: Aankhen
Subject: Re: [O] understanding the function outline-level
Date: Wed, 8 Jun 2011 02:00:46 +0530

Hi Michael,

On Tue, Jun 7, 2011 at 21:53, Michael Brand <address@hidden> wrote:
> I am on the way of tracking down an (Org?) buglet and now
> outline-level tries to strike me with my lack of experience with
> "Match Data" of Emacs search and I would like to ask for some help to
> understand.
> M-: (outline-level) returns a value that I don't understand yet. The
> number does not correspond to the amount of stars and is independent
> of at the beginning of which line the point was before. And when I
> look at the implementation of outline-level I am missing a function
> that initializes the "Match Data". Where is that last search or match
> operation?

Here’s a slightly more complicated alternative method:

| (progn
|   (org-back-to-heading)
|   (org-reduced-level (org-current-level)))

This will take into account `org-odd-levels-only'.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]