From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: [patch] bug in export due to org-list-automatic-rules Date: Wed, 08 Sep 2010 16:36:48 +0200 Message-ID: <87vd6gjo8v.wl%n.goaziou@gmail.com> References: <87vd6htl8c.wl%n142857@gmail.com> Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: multipart/mixed; boundary="Multipart_Wed_Sep__8_16:36:46_2010-1" Return-path: Received: from [140.186.70.92] (port=60682 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OtLlv-0007LX-Vm for emacs-orgmode@gnu.org; Wed, 08 Sep 2010 10:37:13 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OtLlq-0001c8-3p for emacs-orgmode@gnu.org; Wed, 08 Sep 2010 10:37:11 -0400 Received: from mail-wy0-f169.google.com ([74.125.82.169]:34140) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OtLlp-0001bv-U5 for emacs-orgmode@gnu.org; Wed, 08 Sep 2010 10:37:06 -0400 Received: by wyb36 with SMTP id 36so132083wyb.0 for ; Wed, 08 Sep 2010 07:37:05 -0700 (PDT) In-Reply-To: <87vd6htl8c.wl%n142857@gmail.com> 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: Daniel Clemente Cc: org-mode Mailinglist --Multipart_Wed_Sep__8_16:36:46_2010-1 Content-Type: text/plain; charset=US-ASCII Hello, >>>>> Daniel Clemente writes: > Hi. This change in org.el (commit > fd16515b4a88d48362223b19c511c4973cdbc84c, 2010-08-07 18:31:54): > '("^[ \t]*\\([-+*]\\|[0-9]+[.)][ \t]+\\(?:\\[@start:[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 I'm not sure about this one. It's more a problem of require, defcustom, and that kind of things than truly a list problem. Just in case, I'm submitting this patch, but I'm pretty sure there's something cleaner to do about it... but that still eludes me. Regards, -- Nicolas --Multipart_Wed_Sep__8_16:36:46_2010-1 Content-Type: text/plain; type=patch; charset=US-ASCII Content-Disposition: attachment; filename="0002-Fix-void-variable-org-list-automatic-rules-error.patch" Content-Transfer-Encoding: 7bit >From a4f9d65882259348471a8b68890e7faea23d4a1d Mon Sep 17 00:00:00 2001 From: Nicolas Goaziou Date: Wed, 8 Sep 2010 16:25:47 +0200 Subject: [PATCH 2/2] Fix void-variable org-list-automatic-rules error * org.el (org-set-font-lock-defaults): as `org-list-automatic-rules' may be undefined under certain circumstances, first test if it exists before checking rules. --- lisp/org.el | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/lisp/org.el b/lisp/org.el index 10b4d3f..fb2075e 100644 --- a/lisp/org.el +++ b/lisp/org.el @@ -5471,7 +5471,8 @@ needs to be inserted at a specific position in the font-lock sequence.") ;; Checkboxes '("^[ \t]*\\(?:[-+*]\\|[0-9]+[.)]\\)[ \t]+\\(?:\\[@\\(?:start:\\)?[0-9]+\\][ \t]*\\)?\\(\\[[- X]\\]\\)" 1 'org-checkbox prepend) - (if (cdr (assq 'checkbox org-list-automatic-rules)) + (if (and (fboundp 'org-list-automatic-rules) + (cdr (assq 'checkbox org-list-automatic-rules))) '("\\[\\([0-9]*%\\)\\]\\|\\[\\([0-9]*\\)/\\([0-9]*\\)\\]" (0 (org-get-checkbox-statistics-face) t))) ;; Description list items -- 1.7.2.3 --Multipart_Wed_Sep__8_16:36:46_2010-1 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode --Multipart_Wed_Sep__8_16:36:46_2010-1--