From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: Refiling list items Date: Mon, 08 Aug 2011 19:05:16 +0200 Message-ID: <871uwvomur.fsf@gmail.com> References: <874o1r9924.fsf@sophokles.streitblatt.de> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([140.186.70.92]:43802) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QqTGs-0001Ha-74 for emacs-orgmode@gnu.org; Mon, 08 Aug 2011 13:05:50 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QqTGr-0001sz-1a for emacs-orgmode@gnu.org; Mon, 08 Aug 2011 13:05:46 -0400 Received: from mail-wy0-f169.google.com ([74.125.82.169]:42249) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QqTGq-0001st-QP for emacs-orgmode@gnu.org; Mon, 08 Aug 2011 13:05:45 -0400 Received: by wyi11 with SMTP id 11so218128wyi.0 for ; Mon, 08 Aug 2011 10:05:44 -0700 (PDT) In-Reply-To: <874o1r9924.fsf@sophokles.streitblatt.de> (Florian Beck's message of "Mon, 08 Aug 2011 18:12:19 +0200") 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: Florian Beck Cc: Jeff Horn , Org-mode ml Hello, Florian Beck 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