From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: Feature in org-move-item-down Date: Mon, 19 Mar 2007 06:20:29 +0100 Message-ID: References: <20070316231503.1ad23ec5@newmanfamily.me.uk> <20070318232622.76f83afb@newmanfamily.me.uk> Mime-Version: 1.0 (Apple Message framework v624) Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HTAJp-0000ip-Vm for emacs-orgmode@gnu.org; Mon, 19 Mar 2007 01:22:06 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HTAJo-0000ej-3G for emacs-orgmode@gnu.org; Mon, 19 Mar 2007 01:22:05 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HTAJn-0000eE-Up for emacs-orgmode@gnu.org; Mon, 19 Mar 2007 00:22:03 -0500 Received: from korteweg.uva.nl ([146.50.98.70]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1HTAIM-0004XU-TN for emacs-orgmode@gnu.org; Mon, 19 Mar 2007 01:20:35 -0400 In-Reply-To: <20070318232622.76f83afb@newmanfamily.me.uk> 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: Mike Newman Cc: emacs-orgmode@gnu.org On Mar 19, 2007, at 4:26, Mike Newman wrote: > The manual (section 2.8) says > > "Indentation also determines the end of a list item. It ends before > the next line that is indented like the bullet/number, or less." Yes, you are right, I am treating an empty line as a line with a large indentation. Suppose I did what you suggest, treating it as a line with no indentation: - one - two - two a - two b - two c - three Now "- three" will not be treated as third item in the list started by "- one", but it will be starting a new list... Whatever I do, this is very fragile, and I would have to require to never put any empty line between items. What we have now is at least stable. I agree that making empty lines always close all levels of items would be another stable implementation. Hmmmmmm. - Carsten > > I think that a blank line has 0 indentation, therefore (by this logic) > it should end a list item. Clearly a blank line cannot start a list > item, so it must end a list. > > I think the question is whether list items can contain blank lines. > This may be established practice, but it was not what I was expecting. > > Thanks > > Mike > > On Sun, 18 Mar 2007 08:11:08 +0100 > Carsten Dominik wrote: > >> >> On Mar 17, 2007, at 4:15, Mike Newman wrote: >> >>> It appears org-move-item-down treats blank lines as part of the >>> preceding list item (whereas I use them to separate a list from >>> subsequent text). >>> >>> So given >>> >>> - a test >>> - b test >>> - c test >>> >>> test >>> >>> with point on line b, M-x org-move-item-down gives >>> - a test >>> - c test >>> >>> - b test >>> test >> >> >> The problem with is this is following. Suppose I made the item end >> before the >> empty line, as you suggest. Then consider the following case: >> >> - a test >> >> - b test >> >> - c test >> >> If I now move "b" up, I get >> >> - b test >> - a test >> >> >> - c test >> >> I don't think there is a good solution to this problem - if you >> know one, I would be interested. >> >> - Carsten >> > > > -- > Mike > > -- Carsten Dominik Sterrenkundig Instituut "Anton Pannekoek" Universiteit van Amsterdam Kruislaan 403 NL-1098SJ Amsterdam phone: +31 20 525 7477