emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* How can I call the exporter from function?
@ 2015-10-25 20:19 joakim
  2015-10-26 13:18 ` Göktuğ Kayaalp
  0 siblings, 1 reply; 2+ messages in thread
From: joakim @ 2015-10-25 20:19 UTC (permalink / raw)
  To: emacs-orgmode

I want to call the exporter in a certain way, so I don't have to type
the same options every time.

Basically I want to do first this:
    (re-search-backward "^\\*\\* ")
    (org-mark-subtree)

Then I want to export the marked subtree as odt.

With command keys it becomes something like:
c-c c-e c-s o o

... If I remember correctly. In this case I would rather do

m-x my-own-canned-exporter

I tried following the exporting dispatcher function but got lost in the
wilderness. Does anyone have a suggestion?
-- 
Joakim Verona

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

* Re: How can I call the exporter from function?
  2015-10-25 20:19 How can I call the exporter from function? joakim
@ 2015-10-26 13:18 ` Göktuğ Kayaalp
  0 siblings, 0 replies; 2+ messages in thread
From: Göktuğ Kayaalp @ 2015-10-26 13:18 UTC (permalink / raw)
  To: joakim; +Cc: emacs-orgmode

On Sun, Oct 25 2015 at 10:19:01 pm EET, joakim@verona.se wrote:
> I want to call the exporter in a certain way, so I don't have to type
> the same options every time.
>
> Basically I want to do first this:
>     (re-search-backward "^\\*\\* ")
>     (org-mark-subtree)
>
> Then I want to export the marked subtree as odt.

See the  docstring of  `org-odt-export-to-odt'.  Its second  argument is
SUBTREEP, if T, only the subtree under  the point is exported. So a call
like:

   (org-odt-export-to-odt nil t)

Would sort your problem out.

>
> With command keys it becomes something like:
> c-c c-e c-s o o
>
> ... If I remember correctly. In this case I would rather do
>
> m-x my-own-canned-exporter
>
> I tried following the exporting dispatcher function but got lost in the
> wilderness. Does anyone have a suggestion?

-- 
İ. Göktuğ Kayaalp.
http://gkayaalp.com/

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

end of thread, other threads:[~2015-10-26 13:07 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-10-25 20:19 How can I call the exporter from function? joakim
2015-10-26 13:18 ` Göktuğ Kayaalp

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