From mboxrd@z Thu Jan 1 00:00:00 1970 From: User Subject: Re: Automatic indentation of org tree Date: Tue, 28 Jul 2009 04:25:38 +0000 (UTC) Message-ID: References: <871vo1agq1.fsf@bzg.ath.cx> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MVeGP-0003SU-VS for emacs-orgmode@gnu.org; Tue, 28 Jul 2009 00:26:10 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MVeGK-0003H5-3j for emacs-orgmode@gnu.org; Tue, 28 Jul 2009 00:26:08 -0400 Received: from [199.232.76.173] (port=41520 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MVeGJ-0003GZ-OP for emacs-orgmode@gnu.org; Tue, 28 Jul 2009 00:26:03 -0400 Received: from main.gmane.org ([80.91.229.2]:57064 helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MVeGJ-0005Zf-57 for emacs-orgmode@gnu.org; Tue, 28 Jul 2009 00:26:03 -0400 Received: from list by ciao.gmane.org with local (Exim 4.43) id 1MVeGB-0007PC-Ry for emacs-orgmode@gnu.org; Tue, 28 Jul 2009 04:25:56 +0000 Received: from dsl51B61250.pool.t-online.hu ([81.182.18.80]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 28 Jul 2009 04:25:55 +0000 Received: from spamfilteraccount by dsl51B61250.pool.t-online.hu with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 28 Jul 2009 04:25:55 +0000 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: emacs-orgmode@gnu.org Bastien googlemail.com> writes: > > User gmail.com> writes: > > > I put this package here too if someone's interested in developing > > it, because it's unlikely I will have the time to work on it. > > > > http://www.emacswiki.org/emacs/orgindent.el > > Is this supposed to fix a problem or to provide a new functionality? > > If it is a new functionality, so far so good. But if it fixes a > problem, better to say what the problem is and try to solve it in Org. 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.