From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Subject: Re: indentation for section headings vs bulleted lists Date: Sun, 20 Feb 2011 14:27:29 +0100 Message-ID: <878vxazvi6.fsf@gmail.com> 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 Content-Type: text/plain Return-path: Received: from [140.186.70.92] (port=54660 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Pr9K1-0006bf-FU for emacs-orgmode@gnu.org; Sun, 20 Feb 2011 08:27:34 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Pr9K0-0004nf-5W for emacs-orgmode@gnu.org; Sun, 20 Feb 2011 08:27:33 -0500 Received: from mail-bw0-f41.google.com ([209.85.214.41]:63258) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Pr9K0-0004nS-0N for emacs-orgmode@gnu.org; Sun, 20 Feb 2011 08:27:32 -0500 Received: by bwz17 with SMTP id 17so717059bwz.0 for ; Sun, 20 Feb 2011 05:27:31 -0800 (PST) In-Reply-To: (Carsten Dominik's message of "Sun, 20 Feb 2011 13:39:20 +0100") 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: Carsten Dominik Cc: Linus Arver , emacs-orgmode@gnu.org, Bastien Hello, Carsten Dominik writes: > while it might be posible to add additional line-prefix stuff to plain > lists, you need to be careful about performance. Yes, this is my main concern actually. When I speak about a "decent" solution, I'm really thinking about a "sufficiently reactive" one, provided such a thing exists. As far as I can tell, line-prefix is fine as it is. Lists just need to take it as real indentation before processing. Alas, wrap-prefix is the real problem. A solution would be to distinguish if org-indent-refresh-section is called with point in a list or not. In the former case, it would skip lists when changing warp-prefix in the section. In the latter situation, it would only set warp-prefix for the list at point. But then, hooks like org-after-demote-entry-hook would need to call org-indent-refresh-section with an argument telling it to redefine warp-prefix for everything in section, lists included. After all, a small delay is acceptable for interactive use. Does it sound "decent"? Regards, -- Nicolas