[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Orgmode] Re: Trying to write an elisp function to move subtree to end o
From: |
Noorul Islam K M |
Subject: |
[Orgmode] Re: Trying to write an elisp function to move subtree to end of file |
Date: |
Wed, 22 Sep 2010 10:52:11 +0530 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux) |
Charles Cave <address@hidden> writes:
> I am writing an elisp function to move the subtree (at the point/cursor)
> to the end of the file. The code from .elisp is shown
>
> I get an error message "Invalid function: (org-cut-subtree)
>
> (defun move-subtree-to-end ()
> (interactive)
> (save-excursion (
> (org-cut-subtree)
> (end-of-buffer)
> (org-paste-subtree))
> )
> )
> (global-set-key (kbd "C-c e") 'move-subtree-to-end)
>
> To give you background, my todo list/journal has been captured in
> a date tree and I would like to move an item to the end of the buffer.
> The reason for this will be explained in an upcoming article!
>
> Refiling is not applicable as (I don't think) the target can be defined.
I wonder why this is not an option. Can you please elaborate a bit?
Thanks and Regards
Noorul