From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: how to reverse a region of outline items Date: Sat, 09 Oct 2010 19:14:51 +0200 Message-ID: <87d3rjffuc.wl%n.goaziou@gmail.com> References: Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII Return-path: Received: from [140.186.70.92] (port=48758 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1P4d17-0008Ke-St for emacs-orgmode@gnu.org; Sat, 09 Oct 2010 13:15:31 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1P4d16-0004U4-2d for emacs-orgmode@gnu.org; Sat, 09 Oct 2010 13:15:29 -0400 Received: from mail-ww0-f49.google.com ([74.125.82.49]:42348) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1P4d15-0004TV-UY for emacs-orgmode@gnu.org; Sat, 09 Oct 2010 13:15:28 -0400 Received: by wwd20 with SMTP id 20so1989580wwd.30 for ; Sat, 09 Oct 2010 10:15:22 -0700 (PDT) In-Reply-To: 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: Rainer Stengele Cc: emacs-orgmode@gnu.org Hello, C-c ^ A will sort the list alphabetically, in reversed order. If you do not really have A, B, etc. you can, well, add "marks" (numbers) to items with the help of `org-apply-on-list', sort the list numerically (in reversed order, with C-c ^ N), then remove the marks. Here is an example sexp to mark list: (org-apply-on-list '(lambda (c) (org-get-bullet) (goto-char (match-end 0)) (insert (format " %s" c)) (1+ c)) 0) Regards, -- Nicolas