From: 42 147 <aeuster@gmail.com>
To: Bastien <bzg@altern.org>
Cc: Org Mode <emacs-orgmode@gnu.org>
Subject: Re: viewing number of nested headlines
Date: Tue, 5 Feb 2013 17:07:09 -0500 [thread overview]
Message-ID: <CAMgvimEd3BAz6QVESTkT6t-WuW0xnUTsfZXraWVjpUvM95CKMQ@mail.gmail.com> (raw)
In-Reply-To: <87zjziv5gs.fsf@bzg.ath.cx>
[-- Attachment #1: Type: text/plain, Size: 1896 bytes --]
> Hi 42 (what's your other name?)
John is my real first name.
. . .
As for the rest, I didn't see some of the other replies, because the
org-mode mailing list moves a little two fast for my mailbox, and I prefer
to read selectively from the gmane archive.
That said, it is my responsibility to check that website before responding
to (some) of the messages that get forwarded to my e-mail address in a
thread I started.
Anyway, checking out some of the other solutions, since many were provided.
Thanks for the technical background on how headlines work in the code.
2013/2/5 Bastien <bzg@altern.org>
> Hi 42 (what's your other name?)
>
> 42 147 <aeuster@gmail.com> writes:
>
> > Maybe you could point me in the right direction; somewhere in the
> > code, org-mode must be aware of the number of nested headlines in
> > order for show-branches and show-children to work. Or maybe it is
> > not.
>
> It is not. Long story short: folding a headline works by adding a
> text overlay with the invisible property, and finding the end of the
> overlay works by finding another headline of the same level. So there
> is no nothing of "jumping" by N subtrees.
>
> Still, you can fetch the number of invisible headline in a folded
> subtree *afterwards* -- I assumed this is what François' code does.
>
> > In any case, I'd try and adapt the code to display a number
> > indicating (1) position in the hierarchy; and (2) number of
> > headlines at that / those position(s).
>
> This could end up in a minor mode or simply a feature that people
> could turn on and off. But beware of the efficiency: with many
> headlines, the folding features of Org combined with this feature
> could become quite slow.
>
> > Apologies if the original message was poorly articulated.
>
> No problem, that's part of the game.
>
> Thanks,
>
> --
> Bastien
>
[-- Attachment #2: Type: text/html, Size: 2473 bytes --]
next prev parent reply other threads:[~2013-02-05 22:07 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-02-04 23:59 viewing number of nested headlines 42 147
2013-02-05 10:39 ` Bastien
2013-02-05 12:43 ` François Pinard
2013-02-05 18:34 ` Samuel Wales
2013-02-05 13:25 ` Sebastien Vauban
2013-02-05 14:08 ` François Pinard
2013-02-05 20:17 ` 42 147
2013-02-05 21:03 ` Bastien
2013-02-05 22:07 ` 42 147 [this message]
2013-02-06 20:50 ` Achim Gratz
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=CAMgvimEd3BAz6QVESTkT6t-WuW0xnUTsfZXraWVjpUvM95CKMQ@mail.gmail.com \
--to=aeuster@gmail.com \
--cc=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 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).