emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] Refiling list items


From: Nicolas Goaziou
Subject: Re: [O] Refiling list items
Date: Mon, 08 Aug 2011 19:05:16 +0200

Hello,

Florian Beck <address@hidden> 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 via email to

[Prev in Thread] Current Thread [Next in Thread]