From: Aankhen <aankhen@gmail.com>
To: Michael Brand <michael.ch.brand@gmail.com>,
Org mailing list <emacs-orgmode@gnu.org>
Subject: Re: understanding the function outline-level
Date: Wed, 8 Jun 2011 02:00:46 +0530 [thread overview]
Message-ID: <BANLkTikhAGBkS21q=PVbLNHYcCdBYwaCVQ@mail.gmail.com> (raw)
In-Reply-To: <BANLkTikSyCCo8SW3kGK95O1s+SajdA8v+Q@mail.gmail.com>
Hi Michael,
On Tue, Jun 7, 2011 at 21:53, Michael Brand <michael.ch.brand@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
prev parent reply other threads:[~2011-06-07 20:32 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-06-07 16:23 understanding the function outline-level Michael Brand
2011-06-07 17:54 ` Jambunathan K
2011-06-07 18:33 ` Niels Giesen
2011-06-09 7:04 ` Michael Brand
2011-06-09 7:51 ` Carsten Dominik
2011-06-07 20:30 ` Aankhen [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='BANLkTikhAGBkS21q=PVbLNHYcCdBYwaCVQ@mail.gmail.com' \
--to=aankhen@gmail.com \
--cc=emacs-orgmode@gnu.org \
--cc=michael.ch.brand@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).