From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thorsten Jolitz Subject: Re: Counting number of children under heading Date: Thu, 17 Apr 2014 16:43:41 +0200 Message-ID: <87ppkgc8yq.fsf@gmail.com> References: <93A3610A-49AE-4C4A-9C88-2DD81F2C641D@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:55246) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WanWK-0000w4-HO for emacs-orgmode@gnu.org; Thu, 17 Apr 2014 10:42:39 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WanWF-0007wR-Fj for emacs-orgmode@gnu.org; Thu, 17 Apr 2014 10:42:32 -0400 Received: from plane.gmane.org ([80.91.229.3]:40842) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WanWF-0007wL-92 for emacs-orgmode@gnu.org; Thu, 17 Apr 2014 10:42:27 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1WanWE-0003iH-28 for emacs-orgmode@gnu.org; Thu, 17 Apr 2014 16:42:26 +0200 Received: from g231235137.adsl.alicedsl.de ([92.231.235.137]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 17 Apr 2014 16:42:26 +0200 Received: from tjolitz by g231235137.adsl.alicedsl.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 17 Apr 2014 16:42:26 +0200 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Marvin Doyley 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