From mboxrd@z Thu Jan 1 00:00:00 1970 From: Richard Riley Subject: Re: Q : select current org item as region Date: Thu, 09 Sep 2010 15:40:21 +0200 Message-ID: References: <87lj7bw0a6.fsf@dasa3.iem.pw.edu.pl> <87tylzcafi.wl%n.goaziou@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from [140.186.70.92] (port=60657 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OthMl-0001XX-3S for emacs-orgmode@gnu.org; Thu, 09 Sep 2010 09:40:43 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OthMj-0007si-Ms for emacs-orgmode@gnu.org; Thu, 09 Sep 2010 09:40:38 -0400 Received: from lo.gmane.org ([80.91.229.12]:35251) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OthMj-0007sO-F8 for emacs-orgmode@gnu.org; Thu, 09 Sep 2010 09:40:37 -0400 Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1OthMg-0005w8-5W for emacs-orgmode@gnu.org; Thu, 09 Sep 2010 15:40:34 +0200 Received: from 85.183.18.158 ([85.183.18.158]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 09 Sep 2010 15:40:34 +0200 Received: from rileyrg by 85.183.18.158 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 09 Sep 2010 15:40:34 +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: emacs-orgmode@gnu.org Nicolas Goaziou writes: > Hello, >>>>>> Richard Riley writes: > >> Just for google completeness > >> (goto-char (org-entry-beginning-position)) (set-mark >> (org-entry-end-position)) > >> seemed the most efficient after digging about a bit. > > As a side note, > > (goto-char (org-entry-beginning-position)) > > is in fact a convoluted way (if you don't need point value) of calling > > (outline-back-to-heading t) > > so I doubt this is the "most efficient" in this case. > Good spot - but I will probably stick to the org- functions in general in case they are ever expanded for whatever reasons. The speed overhead in an interactive environment is pretty much zero ;)