From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bastien Subject: Re: Q : select current org item as region Date: Thu, 09 Sep 2010 09:52:13 +0200 Message-ID: <8739tj9wwi.fsf@gnu.org> References: <87tym0j9ns.wl%n.goaziou@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from [140.186.70.92] (port=59028 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Otbva-0000Kd-Ox for emacs-orgmode@gnu.org; Thu, 09 Sep 2010 03:52:15 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OtbvZ-0001GO-BS for emacs-orgmode@gnu.org; Thu, 09 Sep 2010 03:52:14 -0400 Received: from mail-ww0-f49.google.com ([74.125.82.49]:38785) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OtbvZ-0001GI-6E for emacs-orgmode@gnu.org; Thu, 09 Sep 2010 03:52:13 -0400 Received: by wwb24 with SMTP id 24so1229842wwb.30 for ; Thu, 09 Sep 2010 00:52:12 -0700 (PDT) In-Reply-To: <87tym0j9ns.wl%n.goaziou@gmail.com> (Nicolas Goaziou's message of "Wed, 08 Sep 2010 21:51:51 +0200") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Nicolas Goaziou Cc: emacs-orgmode@gnu.org, Richard Riley Nicolas Goaziou writes: > (defun mark-current-item () > (interactive) > (when (org-in-item-p) > (goto-char (org-get-item-beginning)) > (push-mark nil t t) > (goto-char (org-get-end-of-item (org-list-bottom-point))))) Interesting -- looks like a good candidate for worg/org-hacks.org Maybe with variants like - narrowing to the item - selecting it (depending on transient-mark-mode) - cloning it - killing it* ... just a thought. * Would people would find it to have C-k to kill a whole item if a certain option is set? I think I would. It's rare to have to kill a line in a list item without having to kill the whole item. -- Bastien