emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Nicolas Goaziou <n.goaziou@gmail.com>
To: suvayu ali <fatkasuvayu+linux@gmail.com>
Cc: org-mode mailing list <emacs-orgmode@gnu.org>
Subject: Re: org-element-drag-* broken
Date: Wed, 04 Jul 2012 18:22:38 +0200	[thread overview]
Message-ID: <87a9zffqcx.fsf@gmail.com> (raw)
In-Reply-To: <CAMXnza0x9SHBJLyTFmSurZoU-xVf9B6PTNgLuem4nw=sBnbpHQ@mail.gmail.com> (suvayu ali's message of "Wed, 4 Jul 2012 18:13:34 +0200")

Hello,

suvayu ali <fatkasuvayu+linux@gmail.com> writes:

> Yes the move is allowed. I can reproduce the problem with the attached
> ECM. Evaluate the lisp block in a minimal Emacs session and try to
> reorder the list below with M-<up/down>.

I see. This behaviour is documented in `org-element-at-point' docstring:

--8<---------------cut here---------------start------------->8---
As a special case, if point is at the very beginning of a list or
sub-list, returned element will be that list instead of the first
item.  In the same way, if point is at the beginning of the first
row of a table, returned element will be the table instead of the
first row.
--8<---------------cut here---------------end--------------->8---

It means that if point is at the very beginning of the list, it will try
to move the whole list. Since there is nothing after the list, it
returns an error.

In order to drag the first item, you have to move one character forward,
or use `org-element-down' in order to "enter" the list.


Regards,

-- 
Nicolas Goaziou

  reply	other threads:[~2012-07-04 16:26 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-07-04 10:36 org-element-drag-* broken suvayu ali
2012-07-04 15:56 ` Nicolas Goaziou
2012-07-04 16:13   ` suvayu ali
2012-07-04 16:22     ` Nicolas Goaziou [this message]
2012-07-04 16:28       ` suvayu ali

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=87a9zffqcx.fsf@gmail.com \
    --to=n.goaziou@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=fatkasuvayu+linux@gmail.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).