emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Puneeth Chaganti <punchagan@gmail.com>
To: 林帅 <mysnowls@163.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: org-mediawiki.el problem: can't work
Date: Sun, 10 Apr 2011 19:11:02 +0530	[thread overview]
Message-ID: <BANLkTikXMCenEpLp_3S5RyzMjVWyG3zOtQ@mail.gmail.com> (raw)
In-Reply-To: <8ca062.8b14.12f3f7a483c.Coremail.mysnowls@163.com>

[-- Attachment #1: Type: text/plain, Size: 1070 bytes --]

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

[-- Attachment #2: org-experimental.patch.txt --]
[-- Type: text/plain, Size: 1791 bytes --]

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	other threads:[~2011-04-10 13:41 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-04-10 12:54 org-mediawiki.el problem: can't work 林帅
2011-04-10 13:41 ` Puneeth Chaganti [this message]
2011-04-10 13:46 ` org-export-mark-list-ending + org-mediawiki.el Jambunathan K
2011-04-10 15:29 ` Re:Re: org-mediawiki.el problem: can't work Lin
2011-04-10 15:34   ` Puneeth Chaganti
2011-04-10 15:48   ` Lin
2011-04-10 16:56     ` Puneeth Chaganti

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=BANLkTikXMCenEpLp_3S5RyzMjVWyG3zOtQ@mail.gmail.com \
    --to=punchagan@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=mysnowls@163.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).