Browse Source

Docbook export: More fixes.

Carsten Dominik 16 years ago
parent
commit
4f61af4445
3 changed files with 10 additions and 4 deletions
  1. 5 0
      lisp/ChangeLog
  2. 4 3
      lisp/org-exp.el
  3. 1 1
      lisp/org-export-latex.el

+ 5 - 0
lisp/ChangeLog

@@ -1,9 +1,14 @@
 2009-03-08  Carsten Dominik  <carsten.dominik@gmail.com>
 
+	* org-export-latex.el (org-export-latex-preprocess): Make all
+	external preprocess functions use a PARAMETER arg.
+
 	* org-exp.el (org-export-preprocess-string)
 	(org-export-select-backend-specific-text)
 	(org-export-format-source-code-or-example)
 	(org-format-org-table-html): Support docbook export.
+	(org-export-preprocess-string): Make all external preprocess
+	functions use a PARAMETER arg.
 
 2009-03-07  Carsten Dominik  <carsten.dominik@gmail.com>
 

+ 4 - 3
lisp/org-exp.el

@@ -31,8 +31,8 @@
 (eval-and-compile
   (require 'cl))
 
-(declare-function org-export-latex-preprocess "org-export-latex" ())
-(declare-function org-export-docbook-preprocess "org-export-docbook" ())
+(declare-function org-export-latex-preprocess "org-export-latex" (parameters))
+(declare-function org-export-docbook-preprocess "org-export-docbook" (parameters))
 (declare-function org-agenda-skip "org-agenda" ())
 (declare-function org-infojs-options-inbuffer-template "org-jsinfo" ())
 (declare-function htmlize-region "ext:htmlize" (beg end))
@@ -1672,7 +1672,7 @@ on this string to produce the exported version."
       ;; LaTeX-specific preprocessing
       (when latexp
 	(require 'org-export-latex nil)
-	(org-export-latex-preprocess))
+	(org-export-latex-preprocess parameters))
 
       ;; ASCII-specific preprocessing
       (when asciip
@@ -1684,6 +1684,7 @@ on this string to produce the exported version."
 
       ;; DocBook-specific preprocessing
       (when docbookp
+	(require 'org-export-docbook nil)
         (org-export-docbook-preprocess parameters))
 
       ;; Remove or replace comments

+ 1 - 1
lisp/org-export-latex.el

@@ -1288,7 +1288,7 @@ The conversion is made depending of STRING-BEFORE and STRING-AFTER."
 (defvar org-latex-entities)   ; defined below
 (defvar org-latex-entities-regexp)   ; defined below
 
-(defun org-export-latex-preprocess ()
+(defun org-export-latex-preprocess (parameters)
   "Clean stuff in the LaTeX export."
   ;; Preserve line breaks
   (goto-char (point-min))