From mboxrd@z Thu Jan 1 00:00:00 1970 From: joakim@verona.se Subject: How can I call the exporter from function? Date: Sun, 25 Oct 2015 21:19:01 +0100 Message-ID: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:34708) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZqRlH-0001Nv-MP for emacs-orgmode@gnu.org; Sun, 25 Oct 2015 16:19:28 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZqRlC-0002Cm-Pj for emacs-orgmode@gnu.org; Sun, 25 Oct 2015 16:19:27 -0400 Received: from mx6.bahnhof.se ([213.80.101.16]:32972) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZqRlC-0002Bf-JZ for emacs-orgmode@gnu.org; Sun, 25 Oct 2015 16:19:22 -0400 Received: from localhost (mf.bahnhof.se [213.80.101.20]) by mx6-reinject (Postfix) with ESMTP id 98C8047264 for ; Sun, 25 Oct 2015 21:19:20 +0100 (CET) Received: from mf2.bahnhof.se ([127.0.0.1]) by localhost (mf2.bahnhof.se [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id TragkQosZyoo for ; Sun, 25 Oct 2015 21:19:12 +0100 (CET) Received: from mta.verona.se (h-235-62.a149.priv.bahnhof.se [85.24.235.62]) by mf2.bahnhof.se (Postfix) with ESMTP id ABB84940246 for ; Sun, 25 Oct 2015 21:19:12 +0100 (CET) Received: from localhost (unknown [127.0.0.1]) by mta.verona.se (Postfix) with ESMTP id 2CD564EC3D5 for ; Sun, 25 Oct 2015 20:19:12 +0000 (UTC) Received: from mta.verona.se ([127.0.0.1]) by localhost (exodia.verona.se [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id h-Pgh1HLH_1d for ; Sun, 25 Oct 2015 21:19:01 +0100 (CET) Received: from exodia.verona.se (www.verona.se [192.168.200.15]) by mta.verona.se (Postfix) with ESMTP id E3C214E2D87 for ; Sun, 25 Oct 2015 21:19:01 +0100 (CET) List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org 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