Hi Michael, On Tue, Jun 7, 2011 at 21:53, Michael Brand <michael.ch.br...@gmail.com> 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'. Aankhen