[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: Sat, 28 Apr 2012 11:10:25 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.94 (gnu/linux)

>> So in reality in Emacs-24 such (defvar <foo>) only
>> affect the current file (actually only the current scope, so you can do
>> (defun test () (defvar toto) (let (toto ...) ...)) and `toto' will only
>> be dynbound within `test'.

> I had no idea this is even possible... and the manual advises that the
> defvar should "usually be at top-level".  So, commenting out all the
> file-level (defvar date) in all of org and then changing in org-bbdb.el
> like this:

In general, having them at file-level is just as good as having it
within a defun.


reply via email to

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