emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Bastien <bzg@altern.org>
To: emacs-orgmode@gnu.org
Subject: Re: FR:  count headlines at a level in a region
Date: Mon, 12 Nov 2007 06:36:45 +0000	[thread overview]
Message-ID: <87zlxk55s2.fsf@bzg.ath.cx> (raw)
In-Reply-To: <m0abpkl2ye.fsf@gmail.com> (Austin Frank's message of "Sun, 11 Nov 2007 19:31:05 -0500")

Austin Frank <austin.frank@gmail.com> writes:

> Would it be possible to add a command that does counts the number of
> headlines at a particular level in a region or a buffer?

May I ask why do you need this?  

Knowing about the context of use for such a function would help figure
out how to write it.

If you just need to know the number of headlines occasionnally, then: 

  C-c C-x b          will open an indirect buffer
  M-x occur "^\*+ "  will find all headlines

But I guess you need to re-use the output of such a function somehow.


      reply	other threads:[~2007-11-12  5:36 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-11-12  0:31 FR: count headlines at a level in a region Austin Frank
2007-11-12  6:36 ` Bastien [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:

  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=87zlxk55s2.fsf@bzg.ath.cx \
    --to=bzg@altern.org \
    --cc=emacs-orgmode@gnu.org \


* 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


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).