emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* org-mediawiki.el problem: can't work
@ 2011-04-10 12:54 林帅
  2011-04-10 13:41 ` Puneeth Chaganti
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: 林帅 @ 2011-04-10 12:54 UTC (permalink / raw)
  To: emacs-orgmode

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

Hello all,

    I git-cloned org from the repo and uses the `org-mediawiki.el` plus `org-export.el`,
which lies in the `EXPERIMENTAL` directory, hoping to export org file in the MediaWiki format.

Some infomation:

    Platform: Ubuntu 10.10
    Emacs version: 23.3
    Org version: 7.5 release
   
Problem #1:

    In the end of `org-medaiwiki.el`, there is no (provide 'org-mediawiki) sentence.
But the intro in the beginning of the file asks me to use (require 'org-mediawiki),
so I added the `provide' sentence by hand.

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!

    Lin, 4-10-2011

   




   




--


Have a nice day:)

Mobile: 13401199830

[-- Attachment #2: Type: text/html, Size: 1701 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: org-mediawiki.el problem: can't work
  2011-04-10 12:54 org-mediawiki.el problem: can't work 林帅
@ 2011-04-10 13:41 ` Puneeth Chaganti
  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
  2 siblings, 0 replies; 7+ messages in thread
From: Puneeth Chaganti @ 2011-04-10 13:41 UTC (permalink / raw)
  To: 林帅; +Cc: emacs-orgmode

[-- 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))))
 

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: org-export-mark-list-ending + org-mediawiki.el
  2011-04-10 12:54 org-mediawiki.el problem: can't work 林帅
  2011-04-10 13:41 ` Puneeth Chaganti
@ 2011-04-10 13:46 ` Jambunathan K
  2011-04-10 15:29 ` Re:Re: org-mediawiki.el problem: can't work Lin
  2 siblings, 0 replies; 7+ messages in thread
From: Jambunathan K @ 2011-04-10 13:46 UTC (permalink / raw)
  To: 林帅; +Cc: emacs-orgmode


Try backerevving starting from 7.4 release till you succeed:

You might have better luck with `git checkout release_7.4'

Use `git tag -l' to see all valid released versions.

ps: I have changed the subject line to be more specific.

Jambunathan K.



林帅 <mysnowls@163.com> writes:

> Hello all,
>   I git-cloned org from the repo and uses the `org-mediawiki.el` plus
> org-export.el`,
> which lies in the `EXPERIMENTAL` directory, hoping to export org file in the
> MediaWiki format.
> Some infomation:
>   Platform: Ubuntu 10.10
>   Emacs version: 23.3
>   Org version: 7.5 release
>  
> Problem #1:
>   In the end of `org-medaiwiki.el`, there is no (provide 'org-mediawiki)
> sentence.
> But the intro in the beginning of the file asks me to use (require 'org-mediawiki),
> so I added the `provide' sentence by hand.
> 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!
>   Lin, 4-10-2011
>  
>  
>
>
> --
>
> Have a nice day:)
>
> Mobile: 13401199830
>

-- 

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re:Re: org-mediawiki.el problem: can't work
  2011-04-10 12:54 org-mediawiki.el problem: can't work 林帅
  2011-04-10 13:41 ` Puneeth Chaganti
  2011-04-10 13:46 ` org-export-mark-list-ending + org-mediawiki.el Jambunathan K
@ 2011-04-10 15:29 ` Lin
  2011-04-10 15:34   ` Puneeth Chaganti
  2011-04-10 15:48   ` Lin
  2 siblings, 2 replies; 7+ messages in thread
From: Lin @ 2011-04-10 15:29 UTC (permalink / raw)
  To: Puneeth Chaganti; +Cc: emacs-orgmode

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

Hi Puneeth,

    Thanks for your attention, but your patch doesn't work.

    The problem is not solved, as I mentioned that, I can find no occurence of the function
`org-export-mark-list-ending` in the whole git repo. 

    I tried your patch just now and the same error occurs:

   Symbol's function definition is void: org-export-mark-list-ending

    Lin, 04-10-2011

On 2011年04月10日 21:41, Puneeth Chaganti wrote:
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



--


Have a nice day:)

Mobile: 13401199830



At 2011-04-10 21:41:02,"Puneeth Chaganti" <punchagan@gmail.com> wrote:

>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: Type: text/html, Size: 4295 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Re: org-mediawiki.el problem: can't work
  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
  1 sibling, 0 replies; 7+ messages in thread
From: Puneeth Chaganti @ 2011-04-10 15:34 UTC (permalink / raw)
  To: Lin; +Cc: emacs-orgmode

Hi Lin,

2011/4/10 Lin <mysnowls@163.com>:
> Hi Puneeth,
>
>     Thanks for your attention, but your patch doesn't work.
>
>     The problem is not solved, as I mentioned that, I can find no occurence
> of the function
> `org-export-mark-list-ending` in the whole git repo.
>
>     I tried your patch just now and the same error occurs:
>
>    Symbol's function definition is void: org-export-mark-list-ending

My patch replaces that with the new function, and fixes a few other
things as well. Did you evaluate `org-export.el' after applying the
patch?

Thanks,
Puneeth

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re:Re: Re: org-mediawiki.el problem: can't work
  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
  1 sibling, 1 reply; 7+ messages in thread
From: Lin @ 2011-04-10 15:48 UTC (permalink / raw)
  To: Puneeth Chaganti; +Cc: emacs-orgmode

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

Hi Puneeth,


At 2011-04-10 23:34:53,"Puneeth Chaganti" <punchagan@gmail.com> wrote:

>Hi Lin,
>
>2011/4/10 Lin <mysnowls@163.com>:
>> Hi Puneeth,
>>
>>     Thanks for your attention, but your patch doesn't work.
>>
>>     The problem is not solved, as I mentioned that, I can find no occurence
>> of the function
>> `org-export-mark-list-ending` in the whole git repo.
>>
>>     I tried your patch just now and the same error occurs:
>>
>>    Symbol's function definition is void: org-export-mark-list-ending
>
>My patch replaces that with the new function, and fixes a few other
>things as well. Did you evaluate `org-export.el' after applying the
>patch?
>
>Thanks,
>Puneeth

I didn't realized that you substituted the 'org-export-mark-list-ending' with
'org-export-mark-list-end', sorry for that.

Now it can work for simple org --> mediawiki exporting, including org tables.

Thanks a lot:)

[-- Attachment #2: Type: text/html, Size: 1601 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Re: Re: org-mediawiki.el problem: can't work
  2011-04-10 15:48   ` Lin
@ 2011-04-10 16:56     ` Puneeth Chaganti
  0 siblings, 0 replies; 7+ messages in thread
From: Puneeth Chaganti @ 2011-04-10 16:56 UTC (permalink / raw)
  To: Lin; +Cc: emacs-orgmode

2011/4/10 Lin <mysnowls@163.com>:
> Hi Puneeth,
>
[..]
> Now it can work for simple org --> mediawiki exporting, including org
> tables.
>
> Thanks a lot:)

Great!

--
Puneeth

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2011-04-10 16:57 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-04-10 12:54 org-mediawiki.el problem: can't work 林帅
2011-04-10 13:41 ` Puneeth Chaganti
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

Code repositories for project(s) associated with this 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).