emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[O] Problems with (defvar foo) and Emacs 23


From: Bernt Hansen
Subject: [O] Problems with (defvar foo) and Emacs 23
Date: Sun, 01 Apr 2012 14:57:51 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux)

Hi Bastien,

I updated to master today e917477 ((org-xhtml.el): Removed, 2012-04-01)
and am getting errors about org-clock-last-state not defined in my GNU
Emacs 23.2.1 (i486-pc-linux-gnu, GTK+ Version 2.20.0) of 2010-12-11 on
raven, modified by Debian

I can see the variable in the source defined as

--8<---------------cut here---------------start------------->8---
lisp/org-clock.el:(defvar org-clock-state) ;; dynamically scoped into this 
function
--8<---------------cut here---------------end--------------->8---

but I don't get a variable definition with this code in emacs 23.2.1.

If I change the definition to

--8<---------------cut here---------------start------------->8---
(defvar org-clock-state nil)
--8<---------------cut here---------------end--------------->8---

then it works for me.

There are _lots_ of these types of definitions with no value in the
org-mode source.

--8<---------------cut here---------------start------------->8---
address@hidden:~/git/org-mode$ git grep '(defvar [a-z-]*)'  | wc -l
409
--8<---------------cut here---------------end--------------->8---

Regards,
Bernt



reply via email to

[Prev in Thread] Current Thread [Next in Thread]