From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?utf-8?Q?G=C3=B6ktu=C4=9F_Kayaalp?= Subject: Re: How can I call the exporter from function? Date: Mon, 26 Oct 2015 15:18:04 +0200 Message-ID: <87ziz5n4z7.fsf@gkayaalp.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:46288) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZqhUY-0007Qt-8W for emacs-orgmode@gnu.org; Mon, 26 Oct 2015 09:07:17 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZqhUU-0003rd-AS for emacs-orgmode@gnu.org; Mon, 26 Oct 2015 09:07:14 -0400 Received: from out3-smtp.messagingengine.com ([66.111.4.27]:48866) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZqhUU-0003rR-1c for emacs-orgmode@gnu.org; Mon, 26 Oct 2015 09:07:10 -0400 In-Reply-To: (joakim@verona.se's message of "Sun, 25 Oct 2015 21:19:01 +0100") 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: joakim@verona.se 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? --=20 =C4=B0. G=C3=B6ktu=C4=9F Kayaalp. http://gkayaalp.com/