[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: |
Sun, 03 Jul 2011 11:39:27 +0200 |
Hello,
Marcelo de Moraes Serpa <address@hidden> writes:
> Nicolas, the function works quite well! Thanks. Just one last request: Is
> it possible to not follow the item until the bottom? The issue is that, once
> running it and when the item is sent to the bottom of the file, the pointer
> is also put there and the buffer scrolls down with it.
Sure, it's simple as packing it into a (save-excursion ...)
#+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"))
(save-excursion (while (ignore-errors (org-move-subtree-down)))))
#+end_src
Regards,
--
Nicolas Goaziou
- Re: [O] Move to item to the bottom, Nicolas Goaziou, 2011/07/01
- Re: [O] Move to item to the bottom, Bastien, 2011/07/01
- Re: [O] Move to item to the bottom, Nicolas Goaziou, 2011/07/01
- Re: [O] Move to item to the bottom, Bastien, 2011/07/01
- Re: [O] Move to item to the bottom, Nicolas Goaziou, 2011/07/02
- Re: [O] Move to item to the bottom, Marcelo de Moraes Serpa, 2011/07/02
- Re: [O] Move to item to the bottom,
Nicolas Goaziou <=
- Re: [O] Move to item to the bottom, Marcelo de Moraes Serpa, 2011/07/04
- Re: [O] Move to item to the bottom, Marcelo de Moraes Serpa, 2011/07/07
- Re: [O] Move to item to the bottom, Marcelo de Moraes Serpa, 2011/07/20
- Re: [O] Move to item to the bottom, Bastien, 2011/07/27
- Re: [O] Move to item to the bottom, Marcelo de Moraes Serpa, 2011/07/27
Re: [O] Move to item to the bottom, Carsten Dominik, 2011/07/01