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.
--
Bastien
prev parent 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:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* 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 \
/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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.