opensubscriber
   Find in this group all groups
 
Unknown more information…

e : emacs-devel@gnu.org 9 May 2012 • 6:48AM -0400

Re: Evil defvars in org.el
by Martyn Jago

REPLY TO AUTHOR
 
REPLY TO GROUP




Chong Yidong <cyd@gnu....> writes:

> org.el (and org-agenda.el, and maybe others) have defvars like this:
>
> (defvar entry)
> (defvar date)
>
> This is going to blow up in someone's face, because it makes `entry' and
> `date' unusable as lexical variables, even though those are very common
> variable names.  That is to say, loading Org mode would change the
> behavior of packages using lexical binding in some unpredictable way.
>
> Why does org need to do this?  Could you try to clean it up?

Perhaps Emacs can prefix the `evil vars' and alias them to the original,
with a deprecation warning?

Best, Martyn




Bookmark with:

Delicious   Digg   reddit   Facebook   StumbleUpon

Related Messages

opensubscriber is not affiliated with the authors of this message nor responsible for its content.