Re: [BBDB] ChangeLog 2016-10-02: Use lexical binding

2016-10-22 Thread Stefan Monnier
>> The first solution binds the variables lexically rather than >> dynamically. That means that if those appear lexically inside >> the things will work correctly, but if calls a function >> which then refers to this reference will fail. > Thank you for the clarification. The code in

Re: [BBDB] ChangeLog 2016-10-02: Use lexical binding

2016-10-07 Thread Roland Winkler
On Fri Oct 7 2016 Stefan Monnier wrote: > The first solution binds the variables lexically rather than > dynamically. That means that if those appear lexically inside > the things will work correctly, but if calls a function > which then refers to this reference will fail. Thank you for the

Re: [BBDB] ChangeLog 2016-10-02: Use lexical binding

2016-10-06 Thread Roland Winkler
On Tue Oct 4 2016 Stefan Monnier wrote: > There are two ways to do that with lexical-binding: > - use (eval `(( . ,) ( . ,) ...) > which will not give the exact same behavior but works well in many > cases (i.e. depends on the code put in diary-date-forms). > - use > > (defvar ) (defvar

Re: [BBDB] ChangeLog 2016-10-02: Use lexical binding

2016-10-04 Thread Stefan Monnier
> This variable contains forms that are evaluated using `eval', > assuming that the variables appearing in this form are bound > dynamically. - I believe that old coding schemes like this one, There are two ways to do that with lexical-binding: - use (eval `(( . ,) ( . ,) ...) which will not

Re: [BBDB] ChangeLog 2016-10-02: Use lexical binding

2016-10-02 Thread Roland Winkler
On Sun Oct 2 2016 Sam Steingold wrote: > I think if you add > > (defvar diary-date-forms) > > to bbdb-anniv.el, it will work with lexical-binding too. This variable contains forms that are evaluated using `eval', assuming that the variables appearing in this form are bound dynamically. - I

Re: [BBDB] ChangeLog 2016-10-02: Use lexical binding

2016-10-02 Thread Sam Steingold
> * Roland Winkler [2016-10-02 00:20:17 -0500]: > > I switched to lexical binding for all elisp files of BBDB except > for bbdb-anniv.el (which relies on `diary-date-forms' that is not > compatible with lexical binding). I think if you add (defvar diary-date-forms) to