emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Nicolas Goaziou <n.goaziou@gmail.com>
To: Daniel Clemente <n142857@gmail.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: "void-variable: tree" in agenda in emacs 23.4.1
Date: Sat, 11 Jan 2014 10:22:34 +0100	[thread overview]
Message-ID: <877ga698kl.fsf@gmail.com> (raw)
In-Reply-To: <87fvovxdix.wl%n142857@gmail.com> (Daniel Clemente's message of "Sat, 11 Jan 2014 13:01:42 +0700")

Hello,

Daniel Clemente <n142857@gmail.com> writes:

>   since some days ago I get an export error after C-a a, batch export, C-e on .org files, … Backtrace at the end.
>
>   Even (avl-tree--root org-element--cache) or (avl-tree--root nil) produce 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 „tree“ in the 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: „if Emacs version is lower than […] then define the macro again with the correct code“. 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,

-- 
Nicolas Goaziou

      reply	other threads:[~2014-01-11  9:22 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-01-11  6:01 "void-variable: tree" in agenda in emacs 23.4.1 Daniel Clemente
2014-01-11  9:22 ` Nicolas Goaziou [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=877ga698kl.fsf@gmail.com \
    --to=n.goaziou@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=n142857@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).