From mboxrd@z Thu Jan 1 00:00:00 1970 From: Daniel Clemente Subject: Re: bug in export due to org-list-automatic-rules Date: Mon, 13 Sep 2010 11:47:35 +0200 Message-ID: <87aanmug94.wl%n142857@gmail.com> References: <87vd6htl8c.wl%n142857@gmail.com> Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from [140.186.70.92] (port=40849 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ov5jQ-00076g-HR for emacs-orgmode@gnu.org; Mon, 13 Sep 2010 05:53:49 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1Ov5dW-0006bM-MA for emacs-orgmode@gnu.org; Mon, 13 Sep 2010 05:47:43 -0400 Received: from mail-wy0-f169.google.com ([74.125.82.169]:54604) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Ov5dW-0006b8-I9 for emacs-orgmode@gnu.org; Mon, 13 Sep 2010 05:47:42 -0400 Received: by wyb36 with SMTP id 36so6987170wyb.0 for ; Mon, 13 Sep 2010 02:47:41 -0700 (PDT) In-Reply-To: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Noorul Islam Cc: n.goaziou@gmail.com, org-mode Mailinglist The cause of these errors: If you use this: emacs --batch --load=3D/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-mo= de/ in my case). But there's a (require 'org-list) in org.el, thus Emacs wi= ll want to load it from the system installation of org. Which may fail. Solution: emacs --batch --load=3D/w/org-mode/lisp/org.el --load=3D/w/org-mode/lisp/or= g-list.el --visit ~/some.org --funcall org-export-as-html-batch Anyway, Nicolas' patch makes it easier to export to HTML by simply loadin= g 1 file (org.el), so I think it's useful. -- Daniel El Wed, 8 Sep 2010 03:39:20 +0530 Noorul Islam va escriure: >=20 > On Wed, Sep 8, 2010 at 12:49 AM, Daniel Clemente wrot= e: > > > > Hi. > > =C2=A0This change in org.el (commit fd16515b4a88d48362223b19c511c4973cd= bc84c, 2010-08-07 18:31:54): > > > > =C2=A0 =C2=A0 '("^[ \t]*\\([-+*]\\|[0-9]+[.)][ \t]+\\(?:\\[@start:[0-9]= +\\][ \t]*\\)?\\)\\(\\[[- X]\\]\\)" > > =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A02 'org-checkbox prepend) > > - =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0= (if org-provide-checkbox-statistics > > + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0= =C2=A0 =C2=A0 =C2=A0 (if (cdr (assq 'checkbox org-list-automatic-rules)) > > =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 '("\\[\\([0-= 9]*%\\)\\]\\|\\[\\([0-9]*\\)/\\([0-9]*\\)\\]" > > =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 (0 (org-get-checkbox-statistics-face) t))) > > > > > > =C2=A0made this command stop working: > > > > $ emacs --batch --load=3D/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 > > >=20 > With the following setup >=20 > "Org-mode version 7.01trans (release_7.01h.475.g0bfd.dirty)" >=20 > "GNU Emacs 23.2.2 (i686-pc-linux-gnu) > of 2010-06-08 on sajida" >=20 > The following command works. I am not sure whether we need to update the = doc. >=20 > noorul@sajida:~/emacs/org-mode/lisp$ emacs --debug-init --batch > --visit=3D/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 >=20 > But if I include load option, I get the following which is surprising for= me. >=20 > noorul@sajida:~/emacs/org-mode/lisp$ emacs --batch > --load=3D/home/noorul/emacs/org-mode/lisp/org.el --visit=3D/tmp/temp.org > --funcall org-export-as-html-batch > Cannot open load file: org-entities >=20 > Thanks and Regards > Noorul