[Top][All Lists]

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

Re: Evil defvars in org.el

From: Stefan Monnier
Subject: Re: Evil defvars in org.el
Date: Fri, 04 May 2012 20:37:27 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.1.50 (gnu/linux)

>>> It seems to me that this is something where there really ought to be
>>> a general Emacs solution (dynamic-let or whatever).
>> There is such a thing: (defvar <foo>).
> It currently has a number of problems:
> - The scoping of defvar is unclear and changes when the code is
> compiled:

Indeed, the rules aren't quite the same, which is one of the reasons why
I prefer not to document them.  Basically the rule is "leave them at
top-level", which should work just fine in 99.9% of the situations.

> - Invalid byte code is generated when the same symbol is used as both a
> lexical and a dynamic variable:

That one is a bug.


reply via email to

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