Re: Re: Re: [O] org-mediawiki.el problem: can't work
2011/4/10 Lin : > Hi Puneeth, > [..] > Now it can work for simple org --> mediawiki exporting, including org > tables. > > Thanks a lot:) Great! -- Puneeth
Re:Re: Re: [O] org-mediawiki.el problem: can't work
Hi Puneeth, At 2011-04-10 23:34:53,"Puneeth Chaganti" wrote: >Hi Lin, > >2011/4/10 Lin : >> 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:)
Re: Re: [O] org-mediawiki.el problem: can't work
Hi Lin, 2011/4/10 Lin : > 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
Re:Re: [O] org-mediawiki.el problem: can't work
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 林帅 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" wrote: >Hi, > >2011/4/10 林帅 >> 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
Re: [O] org-mediawiki.el problem: can't work
Hi, 2011/4/10 林帅 > 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
[O] org-mediawiki.el problem: can't work
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