From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tassilo Horn Subject: Re: Minor org mode for achieve code folding effects Date: Wed, 11 Jan 2012 08:43:09 +0100 Message-ID: <87ehv6it0y.fsf@tsdh.uni-koblenz.de> References: <4F0CD92F.9030004@therogoffs.com> <4F0CE424.7020409@therogoffs.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([140.186.70.92]:59199) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rksq4-0006IZ-Ci for emacs-orgmode@gnu.org; Wed, 11 Jan 2012 02:43:17 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Rksq3-00020U-BO for emacs-orgmode@gnu.org; Wed, 11 Jan 2012 02:43:16 -0500 Received: from deliver.uni-koblenz.de ([141.26.64.15]:34219) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rksq3-00020E-6r for emacs-orgmode@gnu.org; Wed, 11 Jan 2012 02:43:15 -0500 In-Reply-To: (Leo Alekseyev's message of "Wed, 11 Jan 2012 00:23:01 -0600") 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: Leo Alekseyev Cc: emacs-orgmode@gnu.org Leo Alekseyev writes: > I've done a little bit of digging into how Tassilo's code works, and > realized that it's somewhat broken in the following way: if a mode > provides its own outline-level function, chances are, his code will > break (this is why c-mode doesn't work). Even if default > outline-level is used, it will determine the level incorrectly since > it just counts characters in the current outline regex. Yes, I was satisfied with having different colors. But thanks a lot for the improved version! Bye, Tassilo