From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jambunathan K Subject: [PATCH 1/5] org-export: Reserve a slot for OpenDocumentExporter Date: Thu, 23 Jun 2011 21:22:22 +0530 Message-ID: <8162nw8s09.fsf@gmail.com> References: <81aad88s5j.fsf@gmail.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Return-path: Received: from eggs.gnu.org ([140.186.70.92]:35075) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QZmC9-0005Qx-Ej for emacs-orgmode@gnu.org; Thu, 23 Jun 2011 11:51:54 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QZmC4-000313-2R for emacs-orgmode@gnu.org; Thu, 23 Jun 2011 11:51:53 -0400 Received: from mail-pz0-f51.google.com ([209.85.210.51]:35032) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QZmC3-00030r-El for emacs-orgmode@gnu.org; Thu, 23 Jun 2011 11:51:47 -0400 Received: by pzk26 with SMTP id 26so1331654pzk.38 for ; Thu, 23 Jun 2011 08:51:46 -0700 (PDT) In-Reply-To: <81aad88s5j.fsf@gmail.com> (Jambunathan K.'s message of "Thu, 23 Jun 2011 21:19:12 +0530") 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@gnu.org --=-=-= Content-Type: text/plain PATCH-1/5 for org-odt compatibility --=-=-= Content-Type: text/x-patch Content-Disposition: inline; filename=0001-org-export-Reserve-a-slot-for-OpenDocumentExporter.patch >From 06379ccef996e8dabd8dcced6cbe430aacdef3f0 Mon Sep 17 00:00:00 2001 From: Jambunathan K Date: Thu, 23 Jun 2011 01:53:37 +0530 Subject: [PATCH 1/5] org-export: Reserve a slot for OpenDocumentExporter. * lisp/org-exp.el (org-export): Reserve keys 'o' and 'O' for OpenDocumentText export and bind them to org-export-as-odt and org-export-as-odt-and-open. --- lisp/org-exp.el | 10 ++++++++++ 1 files changed, 10 insertions(+), 0 deletions(-) diff --git a/lisp/org-exp.el b/lisp/org-exp.el index b686181..3f4c468 100644 --- a/lisp/org-exp.el +++ b/lisp/org-exp.el @@ -49,6 +49,12 @@ (declare-function org-table-cookie-line-p "org-table" (line)) (declare-function org-table-colgroup-line-p "org-table" (line)) (autoload 'org-export-generic "org-export-generic" "Export using the generic exporter" t) + +(autoload 'org-export-as-odt "org-odt" + "Export the outline to a OpenDocumentText file." t) +(autoload 'org-export-as-odt-and-open "org-odt" + "Export the outline to a OpenDocumentText file and open it." t) + (defgroup org-export nil "Options for exporting org-listings." :tag "Org Export" @@ -933,6 +939,8 @@ Pressing `1' will switch between these two options." \[D] export as DocBook [V] export as DocBook, process to PDF, and open +\[o] export as OpenDocumentText [O] ... and open + \[j] export as TaskJuggler [J] ... and open \[m] export as Freemind mind map @@ -961,6 +969,8 @@ Pressing `1' will switch between these two options." (?g org-export-generic t) (?D org-export-as-docbook t) (?V org-export-as-docbook-pdf-and-open t) + (?o org-export-as-odt t) + (?O org-export-as-odt-and-open t) (?j org-export-as-taskjuggler t) (?J org-export-as-taskjuggler-and-open t) (?m org-export-as-freemind t) -- 1.7.2.3 --=-=-=--