emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Thorsten Jolitz <tjolitz@gmail.com>
To: emacs-orgmode@gnu.org
Subject: Re: Counting number of children under heading
Date: Thu, 17 Apr 2014 16:43:41 +0200	[thread overview]
Message-ID: <87ppkgc8yq.fsf@gmail.com> (raw)
In-Reply-To: 93A3610A-49AE-4C4A-9C88-2DD81F2C641D@gmail.com

Marvin Doyley <marvinpas@gmail.com> writes:

Hi Thorsten,
>
> Your hidden line cookie is what I am looking for. If I understand it I
> should do the following
>
> * Fruits [# ]
> ** Apples
> ** Pears
>
> M-x org-hlc-toggle-hidden-lines-cookies ?
>
> When ever I do this I get the following error
>
> Symbol’s function definition is void: outline-body visible-p, 
>
> The backtrace is included below.

Just tested `org-hlc-toggle-hidden-lines-cookies' with an org file:

,----------------------------------------------------
| 3 matches for "^\* " in buffer: org-outside-org.org
|      15:* Introduction [#30]
|      46:* Org-mode everywhere [#876]
|     923:* Screencasts  [#20]
`----------------------------------------------------

and

,-----------------------------------------------------------
| 12 matches for "^\*\*?\*? " in buffer: org-outside-org.org
|      15:* Introduction [#30]
|      46:* Org-mode everywhere
|      50:** File Structuring
|      54:*** orgstruct  [#39]
|      94:*** Outline with Outshine  [#186]
|     281:** Subtree and Comment Editing
|     285:*** Introduction [#18]
|     304:*** Outorg [#112]
|     417:*** Poporg [#291]
|     709:** Remote Buffer Control [#213]
|     923:* Screencasts  [#20]
`-----------------------------------------------------------

and it seems to work here ... but thats because I always load
outshine.el and therefore took this function for granted:

,------------------------------------------------------------
| outline-body-visible-p is a Lisp function in `outshine.el'.
| 
| (outline-body-visible-p)
`------------------------------------------------------------

I fixed this in master right now, so if you pull the newest version it
should work. 

Note that org-hlc.el is 'wrong' in some ways:
- it only acts when called, not via a hook or so
- it actually modifies the buffer to insert and delete the cookies

but it works more or less, even for massive files.

I tried the right way (visibility change hook and overlays) and noticed
that my user experience went downhill pretty fast in big files - seems
that Emacs display engine is overwhelmed at some point. 

PS 
Why is flyspell-mode turned on automatically in the magit commit-msg
buffer now? I did not do anything about it and don't want it anyway ...

-- 
cheers,
Thorsten

  reply	other threads:[~2014-04-17 14:42 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-04-17 13:44 Counting number of children under heading Marvin Doyley
2014-04-17 14:43 ` Thorsten Jolitz [this message]
  -- strict thread matches above, loose matches on Subject: below --
2014-04-17 16:21 Doyley, Marvin M.
2014-04-17  9:15 Marvin Doyley
2014-04-17  9:21 ` Bastien
2014-04-17  9:42   ` Thorsten Jolitz
2014-04-18 13:54   ` Sebastien Vauban
2014-04-18 14:50     ` Sacha Chua
2014-04-20 17:28       ` Sebastien Vauban
2014-04-21  2:55         ` Sacha Chua
2014-04-17 10:55 ` Eric Abrahamsen
2014-04-17 12:02   ` Thorsten Jolitz
2014-04-17 13:10     ` Eric Abrahamsen

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=87ppkgc8yq.fsf@gmail.com \
    --to=tjolitz@gmail.com \
    --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).