* Sorting top level items
@ 2007-02-16 10:44 redblue last
2007-02-17 20:38 ` Carsten Dominik
0 siblings, 1 reply; 3+ messages in thread
From: redblue last @ 2007-02-16 10:44 UTC (permalink / raw
To: emacs-orgmode
Hi.
When I have top level items like these:
* c
* a
** some subitem
** other subitem
* b
** another subitem
* d
I get a "nothing to sort" error when trying to use "org-sort-entries".
Is there a way to sort those in any way?
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Sorting top level items
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
0 siblings, 1 reply; 3+ messages in thread
From: Carsten Dominik @ 2007-02-17 20:38 UTC (permalink / raw
To: redblue last; +Cc: emacs-orgmode
To sort top-level entries you need to have an active region containing
the entries you want to sort (using transient-mark-mode).
- Carsten
On Feb 16, 2007, at 11:44, redblue last wrote:
> Hi.
>
> When I have top level items like these:
>
> * c
> * a
> ** some subitem
> ** other subitem
> * b
> ** another subitem
> * d
>
> I get a "nothing to sort" error when trying to use "org-sort-entries".
> Is there a way to sort those in any way?
>
>
> _______________________________________________
> Emacs-orgmode mailing list
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode
>
>
--
Carsten Dominik
Sterrenkundig Instituut "Anton Pannekoek"
Universiteit van Amsterdam
Kruislaan 403
NL-1098SJ Amsterdam
phone: +31 20 525 7477
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Sorting top level items
2007-02-17 20:38 ` Carsten Dominik
@ 2007-02-18 10:17 ` redblue last
0 siblings, 0 replies; 3+ messages in thread
From: redblue last @ 2007-02-18 10:17 UTC (permalink / raw
To: emacs-orgmode
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.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2007-02-18 10:17 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.