emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Nicolas Goaziou <mail@nicolasgoaziou.fr>
To: James Harkins <jamshark70@qq.com>
Cc: orgmode <emacs-orgmode@gnu.org>
Subject: Re: M-S-up/down on plain lists containing text (or multilevel lists)
Date: Sun, 02 Nov 2014 09:26:38 +0100	[thread overview]
Message-ID: <871tpmc8jl.fsf@nicolasgoaziou.fr> (raw)
In-Reply-To: <878ujuxd2t.wl-jamshark70@qq.com> (James Harkins's message of "Sun, 02 Nov 2014 15:43:06 +0800")

Hello,

James Harkins <jamshark70@qq.com> 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	other threads:[~2014-11-02  8:26 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-11-02  7:43 M-S-up/down on plain lists containing text (or multilevel lists) James Harkins
2014-11-02  8:26 ` Nicolas Goaziou [this message]
2014-11-02  8:44   ` James Harkins
2014-11-03  9:26   ` James Harkins
2014-11-03 12:48     ` Nicolas Goaziou
2014-11-03 13:32       ` James Harkins
2014-11-03 20:06         ` Nicolas Goaziou

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=871tpmc8jl.fsf@nicolasgoaziou.fr \
    --to=mail@nicolasgoaziou.fr \
    --cc=emacs-orgmode@gnu.org \
    --cc=jamshark70@qq.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).