From mboxrd@z Thu Jan 1 00:00:00 1970 From: "redblue last" Subject: Re: Sorting top level items Date: Sun, 18 Feb 2007 11:17:22 +0100 Message-ID: <97a039270702180217n17d7cce7uc6fa62345f4d73b@mail.gmail.com> References: <97a039270702160244x758e353en5078c714fc3ea9df@mail.gmail.com> <62358f2d0fbb59c80c0719ba48128a56@science.uva.nl> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HIj6k-0006da-9P for emacs-orgmode@gnu.org; Sun, 18 Feb 2007 05:17:26 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HIj6i-0006aA-KD for emacs-orgmode@gnu.org; Sun, 18 Feb 2007 05:17:25 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HIj6i-0006Zl-BL for emacs-orgmode@gnu.org; Sun, 18 Feb 2007 05:17:24 -0500 Received: from nz-out-0506.google.com ([64.233.162.239]) by monty-python.gnu.org with esmtp (Exim 4.52) id 1HIj6i-0006Hd-3i for emacs-orgmode@gnu.org; Sun, 18 Feb 2007 05:17:24 -0500 Received: by nz-out-0506.google.com with SMTP id s1so1287209nze for ; Sun, 18 Feb 2007 02:17:23 -0800 (PST) In-Reply-To: <62358f2d0fbb59c80c0719ba48128a56@science.uva.nl> Content-Disposition: inline List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org On 2/17/07, Carsten Dominik 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.