emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Nicolas Goaziou <n.goaziou@gmail.com>
To: Rainer Stengele <rainer.stengele@diplan.de>
Cc: emacs-orgmode@gnu.org
Subject: Re: how to reverse a region of outline items
Date: Sat, 09 Oct 2010 19:14:51 +0200	[thread overview]
Message-ID: <87d3rjffuc.wl%n.goaziou@gmail.com> (raw)
In-Reply-To: <i8n5cn$f9a$1@dough.gmane.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

  reply	other threads:[~2010-10-09 17:15 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-10-08 13:12 how to reverse a region of outline items Rainer Stengele
2010-10-09 17:14 ` Nicolas Goaziou [this message]
2010-10-12 14:57   ` brian powell

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=87d3rjffuc.wl%n.goaziou@gmail.com \
    --to=n.goaziou@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=rainer.stengele@diplan.de \
    /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).