emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Nicolas Goaziou <n.goaziou@gmail.com>
To: Florian Beck <abstraktion@t-online.de>
Cc: Jeff Horn <jrhorn424@gmail.com>, Org-mode ml <emacs-orgmode@gnu.org>
Subject: Re: Refiling list items
Date: Mon, 08 Aug 2011 19:05:16 +0200	[thread overview]
Message-ID: <871uwvomur.fsf@gmail.com> (raw)
In-Reply-To: <874o1r9924.fsf@sophokles.streitblatt.de> (Florian Beck's message of "Mon, 08 Aug 2011 18:12:19 +0200")

Hello,

Florian Beck <abstraktion@t-online.de> writes:

> (defun org-get-item (&optional kill)
>   "Copy the item at point to the kill ring.
> Optionally, kill it."
>   (save-excursion
>     (let ((beg (org-in-item-p)))
>       (org-end-of-item)
>       (funcall (if kill
> 		   'kill-region
> 		 'copy-region-as-kill)
> 	       beg (point)))))

The latest Org introduced the function `org-list-send-item', which may
be useful here. I'd also suggest to repair list and, eventually, update
check-boxes when killing it.

Regards,

-- 
Nicolas Goaziou

      reply	other threads:[~2011-08-08 17:05 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-08-06 18:54 Refiling list items Jeff Horn
2011-08-08  4:09 ` Jeff Horn
2011-08-08  9:48   ` Nicolas Goaziou
2011-08-08 22:35     ` Jeff Horn
2011-08-08 23:03       ` Nicolas Goaziou
2011-08-08 23:47         ` Jeff Horn
2011-08-09  0:02           ` Nick Dokos
2011-08-09  2:31             ` suvayu ali
2011-08-09  0:20           ` Nick Dokos
2011-08-09  0:40             ` Jeff Horn
2011-08-09  0:45               ` Jeff Horn
2011-08-10 10:05               ` Nicolas Goaziou
2011-08-10 15:16                 ` Jeff Horn
2011-08-17  9:32                 ` Bastien
2011-08-22 16:12                   ` Jeff Horn
2012-01-18  4:56                   ` Jeff Horn
2013-06-28 21:09                     ` Samuel Wales
2013-06-30 23:16                       ` Bastien
2013-07-01 21:35                         ` Samuel Wales
2013-07-02  7:32                           ` Bastien
2011-08-09  1:07           ` Florian Beck
2011-08-08 16:12   ` Florian Beck
2011-08-08 17:05     ` Nicolas Goaziou [this message]

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

  List information: https://www.orgmode.org/

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

  git send-email \
    --in-reply-to=871uwvomur.fsf@gmail.com \
    --to=n.goaziou@gmail.com \
    --cc=abstraktion@t-online.de \
    --cc=emacs-orgmode@gnu.org \
    --cc=jrhorn424@gmail.com \
    /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 public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).