[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] Move to item to the bottom
From: |
Nicolas Goaziou |
Subject: |
Re: [O] Move to item to the bottom |
Date: |
Sat, 02 Jul 2011 10:05:39 +0200 |
Hello,
Marcelo de Moraes Serpa <address@hidden> writes:
>> Or are we talking about two different things?
>
> Not sure, maybe. What I mean is:
>
> gtd.org file:
>
> * TODO Blah
> * TODO Foo
> * TODO bar
[...]
That's what I thought. You are talking about headlines whereas my code
was about plain lists:
- Blah
- Foo
- bar
Forget about it then.
To achieve the desired effect, you may simply use this:
#+begin_src emacs-lisp
(defun ngz-move-headline-at-bottom ()
"Move current headline to the last position in the same tree."
(interactive)
(unless (org-at-heading-p) (error "Not at an headline"))
(while (ignore-errors (org-move-subtree-down))))
#+end_src
Regards,
--
Nicolas Goaziou
- Re: [O] Move to item to the bottom, (continued)
Re: [O] Move to item to the bottom, Carsten Dominik, 2011/07/01
- Re: [O] Move to item to the bottom, Bastien, 2011/07/01
- Re: [O] Move to item to the bottom, Carsten Dominik, 2011/07/01
- Re: [O] Move to item to the bottom, Bastien, 2011/07/01
- Re: [O] Move to item to the bottom, Marcelo de Moraes Serpa, 2011/07/01
- Re: [O] Move to item to the bottom, Nicolas Goaziou, 2011/07/01
- Re: [O] Move to item to the bottom, Marcelo de Moraes Serpa, 2011/07/01
- Re: [O] Move to item to the bottom,
Nicolas Goaziou <=
- Re: [O] Move to item to the bottom, Bastien, 2011/07/02
Re: [O] Move to item to the bottom, Eric S Fraga, 2011/07/01
Re: [O] Move to item to the bottom, Carsten Dominik, 2011/07/01