From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: Re: indentation for section headings vs bulleted lists Date: Sun, 20 Feb 2011 13:39:20 +0100 Message-ID: References: <20110218063938.GA11859@aether.rnxn4ps> <87ei75hght.fsf@gnu.org> <20110219023428.GA5405@aether.rnxn4ps> <87hbc0s6y8.fsf@gnu.org> <20110220072227.GA23385@aether.rnxn4ps> <87d3mmzyn4.fsf@gmail.com> Mime-Version: 1.0 (Apple Message framework v936) Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Return-path: Received: from [140.186.70.92] (port=53790 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Pr8bG-0006wW-Vf for emacs-orgmode@gnu.org; Sun, 20 Feb 2011 07:41:19 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Pr8bG-0004Le-04 for emacs-orgmode@gnu.org; Sun, 20 Feb 2011 07:41:18 -0500 Received: from mail-ew0-f41.google.com ([209.85.215.41]:45756) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Pr8bF-0004La-Rm for emacs-orgmode@gnu.org; Sun, 20 Feb 2011 07:41:17 -0500 Received: by ewy10 with SMTP id 10so444603ewy.0 for ; Sun, 20 Feb 2011 04:41:16 -0800 (PST) In-Reply-To: <87d3mmzyn4.fsf@gmail.com> 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: Nicolas Cc: Linus Arver , emacs-orgmode@gnu.org, Bastien On Feb 20, 2011, at 1:19 PM, Nicolas wrote: > Hello, > > Linus Arver writes: > >> Again, I'm very curious why org-mode's indenting code treats bulleted >> lists differently than section headings. > > This is due to a combination of org-indent-mode and visual-line-mode. > Actually, it's a a two-parts problem. > > Firstly, org-indent-mode only works by sections. That means the whole > section gets the same indent prefix, whatever can be inside. Thus, > lists > cannot be treated differently for now. > > Secondly, org-indent-mode is not indenting anything: it only fakes it. > While this is fine for headings, this causes problems with lists, > which > are depending on real indentation. > > Anyway, I'm on it. I'll post a patch as soon as I find and implement a > decent way to solve this. Hi Nicolas, while it might be posible to add additional line-prefix stuff to plain lists, you need to be careful about performance. I wrote several (I believe 4) different versions of org-indent-mode before behavior was reasonably consistent and fast enough. Cheers - Carsten