From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: Move to item to the bottom Date: Sat, 02 Jul 2011 10:05:39 +0200 Message-ID: <87aacx9kfg.fsf@gmail.com> References: <878vsjb14b.fsf@gmail.com> <87zkkya4ok.fsf@gmail.com> <87hb765qfz.fsf@gnu.org> <4BFA361F-7DED-4A0E-9C13-DB2EE29AA95B@gmail.com> <87aacyxriu.fsf@gnu.org> <19D8F6F0-5263-456A-8251-12FB32496793@gmail.com> <87vcvm2de3.fsf@gnu.org> <87iprlajn5.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([140.186.70.92]:45513) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QcvD4-0007ek-08 for emacs-orgmode@gnu.org; Sat, 02 Jul 2011 04:05:51 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QcvD1-0007Pk-RF for emacs-orgmode@gnu.org; Sat, 02 Jul 2011 04:05:49 -0400 Received: from mail-ww0-f49.google.com ([74.125.82.49]:47909) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QcvD1-0007Pa-8x for emacs-orgmode@gnu.org; Sat, 02 Jul 2011 04:05:47 -0400 Received: by wwf22 with SMTP id 22so3080294wwf.30 for ; Sat, 02 Jul 2011 01:05:46 -0700 (PDT) In-Reply-To: (Marcelo de Moraes Serpa's message of "Fri, 1 Jul 2011 17:58:12 -0500") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Marcelo de Moraes Serpa Cc: Bastien , Org Mode , Carsten Dominik Hello, Marcelo de Moraes Serpa 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