From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: "void-variable: tree" in agenda in emacs 23.4.1 Date: Sat, 11 Jan 2014 10:22:34 +0100 Message-ID: <877ga698kl.fsf@gmail.com> References: <87fvovxdix.wl%n142857@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:55353) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W1uls-00069t-QS for emacs-orgmode@gnu.org; Sat, 11 Jan 2014 04:22:33 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1W1ulj-0001A6-RW for emacs-orgmode@gnu.org; Sat, 11 Jan 2014 04:22:24 -0500 Received: from mail-wi0-x235.google.com ([2a00:1450:400c:c05::235]:34621) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W1ulj-00019v-Kw for emacs-orgmode@gnu.org; Sat, 11 Jan 2014 04:22:15 -0500 Received: by mail-wi0-f181.google.com with SMTP id hq4so499077wib.14 for ; Sat, 11 Jan 2014 01:22:14 -0800 (PST) In-Reply-To: <87fvovxdix.wl%n142857@gmail.com> (Daniel Clemente's message of "Sat, 11 Jan 2014 13:01:42 +0700") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Daniel Clemente Cc: emacs-orgmode@gnu.org Hello, Daniel Clemente writes: > since some days ago I get an export error after C-a a, batch export, C-= e on .org files, =E2=80=A6 Backtrace at the end. > > Even (avl-tree--root org-element--cache) or (avl-tree--root nil) produc= e the same error. > > This is not a bug in org, but in Emacs 23.4.1. avl-tree.el says: > > (defmacro avl-tree--root (tree) > ;; Return the root node for an avl-tree. INTERNAL USE ONLY. > `(avl-tree--node-left (avl-tree--dummyroot tree))) > > And it should have a comma before the word =E2=80=9Etree=E2=80=9C in th= e body. Like this (org-mode works with this): > > (defmacro avl-tree--root (tree) > ;; Return the root node for an avl-tree. INTERNAL USE ONLY. > `(avl-tree--node-left (avl-tree--dummyroot ,tree))) > > This was fixed in emacs from Bazaar (in rev. 104392, Fri 2011-05-27 > 20:03:26 -0300). I wasn't aware of this bug. Thank you. > But at the moment org-mode does not work in Emacs 23.4.1, so I think it= should have a work-around. > The fix can be: =E2=80=9Eif Emacs version is lower than [=E2=80=A6] the= n define the macro again with the correct code=E2=80=9C. Like: > > (if (version< emacs-version "24") > (defmacro avl-tree--root (tree) > ;; Backport fix for older versions due to missing comma in ,tree > `(avl-tree--node-left (avl-tree--dummyroot ,tree))) > ) I just avoided to use `avl-tree--root' altogether. Hopefully, this should fix the problem. Regards, --=20 Nicolas Goaziou