all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Noorul Islam K M <noorul@noorul.com>
To: Charles Cave <charles_cave@optusnet.com.au>
Cc: emacs-orgmode@gnu.org
Subject: Re: Trying to write an elisp function to move subtree to end of file
Date: Wed, 22 Sep 2010 10:52:11 +0530	[thread overview]
Message-ID: <87mxrawdx8.fsf@noorul.maa.corp.collab.net> (raw)
In-Reply-To: <loom.20100922T013636-936@post.gmane.org> (Charles Cave's message of "Tue, 21 Sep 2010 23:42:11 +0000 (UTC)")

Charles Cave <charles_cave@optusnet.com.au> 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

  reply	other threads:[~2010-09-22  5:23 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-09-21 23:42 Trying to write an elisp function to move subtree to end of file Charles Cave
2010-09-22  5:22 ` Noorul Islam K M [this message]
2010-09-22  5:58 ` Nick Dokos

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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87mxrawdx8.fsf@noorul.maa.corp.collab.net \
    --to=noorul@noorul.com \
    --cc=charles_cave@optusnet.com.au \
    --cc=emacs-orgmode@gnu.org \
    /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 external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.