Browse Source

org-e-html.el: Fix XML declaration.

Also add autoload cookie and a require.
Jambunathan K 13 years ago
parent
commit
11ef636f55
1 changed files with 6 additions and 4 deletions
  1. 6 4
      contrib/lisp/org-e-html.el

+ 6 - 4
contrib/lisp/org-e-html.el

@@ -35,6 +35,7 @@
 ;;; org-e-html.el
 ;;; Dependencies
 
+(require 'org-export)
 (require 'format-spec)
 (eval-when-compile (require 'cl) (require 'table))
 
@@ -1698,10 +1699,10 @@ original parsed data.  INFO is a plist holding export options."
 	(cdr (assoc "html" org-e-html-xml-declaration))
 
 	"")
-    (or (and coding-system-for-write
-	     (fboundp 'coding-system-get)
-	     (coding-system-get coding-system-for-write
-				'mime-charset))
+    (or (and org-e-html-coding-system
+	       (fboundp 'coding-system-get)
+	       (coding-system-get org-e-html-coding-system
+				  'mime-charset))
 	"iso-8859-1"))
    "
 <!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Strict//EN\"
@@ -3097,6 +3098,7 @@ contextual information."
 
 ;;; Interactive functions
 
+;;;###autoload
 (defun org-e-html-export-to-html
   (&optional subtreep visible-only body-only ext-plist pub-dir)
   "Export current buffer to a HTML file.