From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: M-S-up/down on plain lists containing text (or multilevel lists) Date: Sun, 02 Nov 2014 09:26:38 +0100 Message-ID: <871tpmc8jl.fsf@nicolasgoaziou.fr> References: <878ujuxd2t.wl-jamshark70@qq.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:52024) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XkqTz-0003Up-RR for emacs-orgmode@gnu.org; Sun, 02 Nov 2014 03:26:02 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XkqTs-0000D6-Vs for emacs-orgmode@gnu.org; Sun, 02 Nov 2014 03:25:55 -0500 Received: from relay4-d.mail.gandi.net ([2001:4b98:c:538::196]:39203) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XkqTs-0000Cz-QU for emacs-orgmode@gnu.org; Sun, 02 Nov 2014 03:25:48 -0500 In-Reply-To: <878ujuxd2t.wl-jamshark70@qq.com> (James Harkins's message of "Sun, 02 Nov 2014 15:43:06 +0800") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: James Harkins Cc: orgmode Hello, James Harkins writes: > In plain lists, if there is indented text underneath a list item, is > it considered to "belong to" the list item, or is it just freestanding > text? The former. > I'm asking because M-S-up/down doesn't take indented text into > account. These commands only move the line marked with a list-item > indicator ("-" etc.). > > * Heading > - List item 1 > - List item 2 > Indented text > - List item 3 > > Position the point on "List item 2" and hit M-S-down. You'll get this, > which seems wrong to me: > > * Heading > - List item 1 > Indented text > - List item 2 > - List item 3 > > I expected: > > * Heading > - List item 1 > - List item 3 > - List item 2 > Indented text > > My opinion is that this is a bug Actually, it isn't. This is a feature. Both `M-S-up' and `M-S-down' work line wise and ignore any structure around point. OTOH, `M-up' and `M-down' should do what you want. Regards, -- Nicolas Goaziou