emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] M-S-up/down on plain lists containing text (or multilevel lists)


From: Nicolas Goaziou
Subject: Re: [O] M-S-up/down on plain lists containing text (or multilevel lists)
Date: Sun, 02 Nov 2014 09:26:38 +0100

Hello,

James Harkins <address@hidden> 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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]