From 35b9556cc399e4405a4baa9514f0993b03f318e6 Mon Sep 17 00:00:00 2001 From: Jambunathan K Date: Fri, 25 May 2012 18:53:33 +0530 Subject: [PATCH] org-odt.el: Fix previous commit * lisp/org-odt.el (org-odt-init-outfile): Fix previous commit. Make sure that nxml-mode is loaded before let-binding `nxml-auto-insert-xml-declaration-flag'. --- lisp/org-odt.el | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lisp/org-odt.el b/lisp/org-odt.el index 8475eaae5..ca43d05bd 100644 --- a/lisp/org-odt.el +++ b/lisp/org-odt.el @@ -2211,9 +2211,9 @@ captions on export.") (content-file (expand-file-name "content.xml" outdir))) ;; init conten.xml - (with-current-buffer - (let ((nxml-auto-insert-xml-declaration-flag nil)) - (find-file-noselect content-file t))) + (require 'nxml-mode) + (let ((nxml-auto-insert-xml-declaration-flag nil)) + (find-file-noselect content-file t)) ;; reset variables (setq org-odt-manifest-file-entries nil