[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] Org Clock Error
From: |
Nick Dokos |
Subject: |
Re: [O] Org Clock Error |
Date: |
Thu, 14 Jan 2016 12:30:07 -0500 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) |
Nick Dokos <address@hidden> writes:
> These are all guesses, untainted by actual knowledge or research.
>
OK - here's some actual research for a change. I was wondering what
(defvar org-state)
actually does, so I looked at the source code for defvar. It contains
this comment:
,----
| else if (!NILP (Vinternal_interpreter_environment)
| && !XSYMBOL (sym)->declared_special)
| /* A simple (defvar foo) with lexical scoping does "nothing" except
| declare that var to be dynamically scoped *locally* (i.e. within
| the current file or let-block). */
| Vinternal_interpreter_environment
| = Fcons (sym, Vinternal_interpreter_environment);
| else
`----
so it seems to be only active *for that file*: you need "(defvar org-state)" in
each file that uses the variable.
--
Nick