[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Orgmode] bug in export due to org-list-automatic-rules
From: |
Daniel Clemente |
Subject: |
Re: [Orgmode] bug in export due to org-list-automatic-rules |
Date: |
Mon, 13 Sep 2010 11:47:35 +0200 |
User-agent: |
Wanderlust/2.15.9 (Almost Unreal) SEMI/1.14.6 (Maruoka) FLIM/1.14.9 (Gojō) APEL/10.8 Emacs/24.0.50 (i686-pc-linux-gnu) MULE/6.0 (HANACHIRUSATO) |
The cause of these errors:
If you use this:
emacs --batch --load=/w/org-mode/lisp/org.el --visit ~/some.org --funcall
org-export-as-html-batch
Then you haven't changed the load-path to your org's directory (/w/org-mode/
in my case). But there's a (require 'org-list) in org.el, thus Emacs will want
to load it from the system installation of org. Which may fail.
Solution:
emacs --batch --load=/w/org-mode/lisp/org.el
--load=/w/org-mode/lisp/org-list.el --visit ~/some.org --funcall
org-export-as-html-batch
Anyway, Nicolas' patch makes it easier to export to HTML by simply loading 1
file (org.el), so I think it's useful.
-- Daniel
El Wed, 8 Sep 2010 03:39:20 +0530 Noorul Islam va escriure:
>
> On Wed, Sep 8, 2010 at 12:49 AM, Daniel Clemente <address@hidden> wrote:
> >
> > Hi.
> > This change in org.el (commit fd16515b4a88d48362223b19c511c4973cdbc84c,
> > 2010-08-07 18:31:54):
> >
> > '("^[ \t]*\\([-+*]\\|[0-9]+[.)][ \t]+\\(?:address@hidden:[0-9]+\\][
> > \t]*\\)?\\)\\(\\[[- X]\\]\\)"
> > 2 'org-checkbox prepend)
> > - (if org-provide-checkbox-statistics
> > + (if (cdr (assq 'checkbox
> > org-list-automatic-rules))
> >
> > '("\\[\\([0-9]*%\\)\\]\\|\\[\\([0-9]*\\)/\\([0-9]*\\)\\]"
> > (0
> > (org-get-checkbox-statistics-face) t)))
> >
> >
> > made this command stop working:
> >
> > $ emacs --batch --load=/w/org-mode/lisp/org.el --visit
> > ~/org-httptest/io.org --funcall org-export-as-html-batch
> > File mode specification error: (void-variable org-list-automatic-rules)
> > Loading vc-git...
> > Exporting...
> > Symbol's value as variable is void: org-list-automatic-rules
> >
>
> With the following setup
>
> "Org-mode version 7.01trans (release_7.01h.475.g0bfd.dirty)"
>
> "GNU Emacs 23.2.2 (i686-pc-linux-gnu)
> of 2010-06-08 on sajida"
>
> The following command works. I am not sure whether we need to update the doc.
>
> address@hidden:~/emacs/org-mode/lisp$ emacs --debug-init --batch
> --visit=/tmp/temp.org --funcall org-export-as-html-batch
> OVERVIEW
> Exporting...
> Exporting...
> Exporting...
> Saving file /tmp/temp.html...
> Wrote /tmp/temp.html
> HTML export done, pushed to kill ring and clipboard
>
> But if I include load option, I get the following which is surprising for me.
>
> address@hidden:~/emacs/org-mode/lisp$ emacs --batch
> --load=/home/noorul/emacs/org-mode/lisp/org.el --visit=/tmp/temp.org
> --funcall org-export-as-html-batch
> Cannot open load file: org-entities
>
> Thanks and Regards
> Noorul