From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bastien Subject: Re: Re: Automatic indentation of org tree Date: Tue, 28 Jul 2009 20:05:58 +0800 Message-ID: <87r5w13taq.fsf@bzg.ath.cx> References: <871vo1agq1.fsf@bzg.ath.cx> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MVlSh-0008Dr-09 for emacs-orgmode@gnu.org; Tue, 28 Jul 2009 08:07:19 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MVlSe-0008CX-6m for emacs-orgmode@gnu.org; Tue, 28 Jul 2009 08:07:17 -0400 Received: from [199.232.76.173] (port=40378 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MVlSd-0008CJ-QL for emacs-orgmode@gnu.org; Tue, 28 Jul 2009 08:07:16 -0400 Received: from rv-out-0708.google.com ([209.85.198.245]:58382) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MVlSd-0001Vi-DW for emacs-orgmode@gnu.org; Tue, 28 Jul 2009 08:07:15 -0400 Received: by rv-out-0708.google.com with SMTP id f25so1652992rvb.6 for ; Tue, 28 Jul 2009 05:07:15 -0700 (PDT) In-Reply-To: (User's message of "Tue, 28 Jul 2009 04:25:38 +0000 (UTC)") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: User Cc: emacs-orgmode@gnu.org User writes: > It is a possible solution to the clean view problem mentioned in > the org manuual: > > Indentation of text below headlines > > You may indent text below each headline to make the left > boundary line up with the headline, like > > *** 3rd level > more text, now indented > > > A good way to get this indentation is by hand, and Org supports > this with paragraph filling, line wrapping, and structure > editing99 preserving or adapting the indentation as > appropriate. A different approach would be to have a way to > automatically indent lines according to outline structure by > adding overlays or text properties. But I have not yet found a > robust and efficient way to do this in large files. > > http://orgmode.org/manual/#Clean-view > > > The solution I posted implements that different approach, so you > don't have to do the indentation by hand. Okay, I see. I tested your code but there are several problems: it is not usable on big files, and even on small files the auto-indentation is confusing. For example, stars get indented while there should not. I guess this is still work-in-progress -- hope you'll find ways to fix the problems above! -- Bastien