Преглед на файлове

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'.
Jambunathan K преди 12 години
родител
ревизия
35b9556cc3
променени са 1 файла, в които са добавени 3 реда и са изтрити 3 реда
  1. 3 3
      lisp/org-odt.el

+ 3 - 3
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