From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thorsten Jolitz Subject: Re: [NEW FEATURE] org-hlc.el - hidden-lines-cookies (hlc) for Org-mode Date: Thu, 23 May 2013 12:30:36 +0200 Message-ID: <87ppwirnxu.fsf@gmail.com> References: <87zjvmiw1k.fsf@gmail.com> <6219E7E2-9951-4B05-A977-DE0DD1B120BE@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([208.118.235.92]:48131) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UfSnY-0001ew-0X for emacs-orgmode@gnu.org; Thu, 23 May 2013 06:31:09 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UfSnS-0006hF-Jc for emacs-orgmode@gnu.org; Thu, 23 May 2013 06:31:03 -0400 Received: from plane.gmane.org ([80.91.229.3]:48393) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UfSnS-0006h9-Bx for emacs-orgmode@gnu.org; Thu, 23 May 2013 06:30:58 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1UfSnN-0001pL-Gw for emacs-orgmode@gnu.org; Thu, 23 May 2013 12:30:53 +0200 Received: from e178190243.adsl.alicedsl.de ([85.178.190.243]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 23 May 2013 12:30:53 +0200 Received: from tjolitz by e178190243.adsl.alicedsl.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 23 May 2013 12:30:53 +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 Carsten Dominik writes: Hi Carsten, > On 22 mei 2013, at 22:44, Thorsten Jolitz wrote: > What is it all about? With 'org-hlc' > > ,-------------------------------------------------------------------- > | Behind every folded headline, a little 'cookie' shows the number of > | hidden lines till the next visible headline. > `-------------------------------------------------------------------- > This is is definitely a nice feature. [...] However, I don't think the > implementation is the right one.  Modifying the file to display this > does not seem right. I would say it should use text properties or > maybe overlays for display I have not done anything with text properties or overlays before, so I have to take it look at the docs, but I guess this would only affect small parts of the implementation (do something with properties/overlays instead of inserting/deleting text). > , and it should be hooked somehow into the folding/unfolding routines > to auto-update. Thats what I thought too, but I ran into a problem I could not solve so far, so this user-command based implementation (show the cookies on demand) is kind of the second-best solution (better then nothing). Here is a thread related to the problem mentioned, unfortunately with no posts except my own so far: ,----------------------------------------------------------------------- | http://lists.gnu.org/archive/html/help-gnu-emacs/2013-05/msg00511.html `----------------------------------------------------------------------- -- cheers, Thorsten