From mboxrd@z Thu Jan 1 00:00:00 1970 From: Richard Riley Subject: Q : select current org item as region Date: Wed, 08 Sep 2010 20:51:14 +0200 Message-ID: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from [140.186.70.92] (port=35971 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OtPk1-0003CL-7R for emacs-orgmode@gnu.org; Wed, 08 Sep 2010 14:51:30 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OtPk0-00069m-3K for emacs-orgmode@gnu.org; Wed, 08 Sep 2010 14:51:29 -0400 Received: from lo.gmane.org ([80.91.229.12]:44207) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OtPjz-00069Y-SD for emacs-orgmode@gnu.org; Wed, 08 Sep 2010 14:51:28 -0400 Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1OtPjy-0008Ev-JH for emacs-orgmode@gnu.org; Wed, 08 Sep 2010 20:51:26 +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 ; Wed, 08 Sep 2010 20:51:26 +0200 Received: from rileyrg by 85.183.18.158 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 08 Sep 2010 20:51:26 +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 What would be the best elisp way to select the current org entry? I want a hot key to select the current item as current region (not into the clipboard). The problem I am having is that org-in-item-p is returning nil even though the point is in an org-item. Is the docstring where it mentions "hand-formatted item" more significant that I understand? As a result org-beginning-of-item is failing Currently the function I have is (not working but to give you the idea of what I am trying to accomplish): (defun rgr/org-blog-entry () (interactive) (save-excursion (org-beginning-of-item) (set-mark-command) (org-end-of-item) (let((tmpbuf (make-temp-file))) (org-export-as-html nil nil tmpbuf t))))