Hi,

2011/4/10 林帅 <mysnowls@163.>
> Problem #2:
>
>     When I M-x org-mw-export,  an error occurs:
>
>     save-current-buffer: Symbol's function definition is void:
> org-export-mark-list-ending
>
>     As I found, `org-export-mark-list-ending` is used in line 264,
> org-export.el
>
>        ;; Mark end of lists
>       (org-export-mark-list-ending backend)
>
>     I grep-ed the whole git cloned directory and find nothing more of this
>     "org-export-mark-list-ending" function.
>
>
>     Anyone can work well on exporting org in mediawiki format? Any help
> would be appreciated!

The exporter hasn't been updated in a long while and with a lot of
recent development activity, this seems to have become non-functional.

I have a quick patch [I haven't done extensive testing or
code-reading] that seems to make it work for a simple file. I am not
really aware of all the changes that org-exp.el has undergone, so
someone more familiar with it may be able to help better.

Hope it helps,
Puneeth
diff --git a/EXPERIMENTAL/org-export.el b/EXPERIMENTAL/org-export.el
index f04ffaf..bc2a77e 100644
--- a/EXPERIMENTAL/org-export.el
+++ b/EXPERIMENTAL/org-export.el
@@ -262,7 +262,7 @@ on this string to produce the exported version."
       (run-hooks 'org-export-preprocess-after-tree-selection-hook)
 
       ;; Mark end of lists
-      (org-export-mark-list-ending backend)
+      (org-export-mark-list-end)
 
       ;; Handle source code snippets
       ;; (org-export-export-replace-src-segments-and-examples backend)
@@ -284,7 +284,7 @@ on this string to produce the exported version."
 
       ;; Get rid of drawers
       (org-export-remove-or-extract-drawers
-       drawers (plist-get parameters :drawers) backend)
+       drawers (plist-get parameters :drawers))
 
       ;; Get the correct stuff before the first headline
       (when (plist-get parameters :skip-before-1st-heading)
@@ -307,7 +307,7 @@ on this string to produce the exported version."
       ;; Select and protect backend specific stuff, throw away stuff
       ;; that is specific for other backends
       (run-hooks 'org-export-preprocess-before-selecting-backend-code-hook)
-      (org-export-select-backend-specific-text backend)
+      (org-export-select-backend-specific-text)
 
       ;; Protect quoted subtrees
       (org-export-protect-quoted-subtrees)
diff --git a/EXPERIMENTAL/org-mediawiki.el b/EXPERIMENTAL/org-mediawiki.el
index ab5eda1..4797925 100644
--- a/EXPERIMENTAL/org-mediawiki.el
+++ b/EXPERIMENTAL/org-mediawiki.el
@@ -179,7 +179,7 @@
 
 (defun org-mw-export-lists ()
   "Export lists"
-  (while (re-search-forward org-item-beginning-re nil t)
+  (while (re-search-forward (org-item-beginning-re) nil t)
     (move-beginning-of-line 1)
     (org-list-to-mw (org-list-parse-list t))))
 

Reply via email to