emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: "redblue last" <redblueuser@gmail.com>
To: emacs-orgmode@gnu.org
Subject: Re: Sorting top level items
Date: Sun, 18 Feb 2007 11:17:22 +0100	[thread overview]
Message-ID: <97a039270702180217n17d7cce7uc6fa62345f4d73b@mail.gmail.com> (raw)
In-Reply-To: <62358f2d0fbb59c80c0719ba48128a56@science.uva.nl>

On 2/17/07, Carsten Dominik <dominik@science.uva.nl> wrote:
> To sort top-level entries you need to have an active region containing
> the entries you want to sort (using transient-mark-mode).

Thanks, this somewhat works.

I have two problems with it.

First minor problem is that it doesn't sort the first entry if it is
at the beginning of the buffer. Only the entries from second to end of
region are sorted.
For example:

* c
* b
* a

would be

* c
* a
* b

If "*c" is the first line in the buffer.

Second problem is if I have something like:

* DONE d
  CLOSED: [2007-02-18 sun]
* TODO a
* TODO b

I get an error saying "Region to sort contains a level above the first entry.

If however I have this:

* DONE d   CLOSED: [2007-02-18 sun]
* TODO a
* TODO b

it works again.

      reply	other threads:[~2007-02-18 10:17 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-02-16 10:44 Sorting top level items redblue last
2007-02-17 20:38 ` Carsten Dominik
2007-02-18 10:17   ` redblue last [this message]

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=97a039270702180217n17d7cce7uc6fa62345f4d73b@mail.gmail.com \
    --to=redblueuser@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    /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).