emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Q : select current org item as region
@ 2010-09-08 18:51 Richard Riley
  2010-09-08 19:40 ` Richard Riley
                   ` (2 more replies)
  0 siblings, 3 replies; 11+ messages in thread
From: Richard Riley @ 2010-09-08 18:51 UTC (permalink / raw)
  To: emacs-orgmode


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))))

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2010-09-10 14:46 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-09-08 18:51 Q : select current org item as region Richard Riley
2010-09-08 19:40 ` Richard Riley
2010-09-08 21:06   ` Richard Riley
2010-09-08 19:51 ` Nicolas Goaziou
2010-09-09  7:52   ` Bastien
2010-09-09 12:48 ` Łukasz Stelmach
2010-09-09 13:03   ` Richard Riley
2010-09-09 13:29     ` Nicolas Goaziou
2010-09-09 13:40       ` Richard Riley
2010-09-10 13:51     ` Łukasz Stelmach
2010-09-10 14:45       ` Richard Riley

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).