[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: de-dynamicizing some code
From: |
Eric Abrahamsen |
Subject: |
Re: de-dynamicizing some code |
Date: |
Thu, 20 Nov 2014 12:13:11 +0800 |
User-agent: |
Gnus/5.130012 (Ma Gnus v0.12) Emacs/24.4 (gnu/linux) |
Stefan Monnier <monnier@iro.umontreal.ca> writes:
>> I assume the proper solution is to replace this:
>> (funcall formatfun record)
>> with:
>> (funcall formatfun record indent fmt)
>> Is that correct?
>
> There are various solutions, but this one looks like a very good
> option, indeed.
>
> The next best thing is to rename the variables to bbdb-fmt and
> bbdb-indent (and to add "(defvar bbdb-indent) (defvar bbdb-fmt)"
> somewhere at top-level (to tell the compiler that these vars should use
> dynamic binding).
Interesting -- thanks. I guess in this case the simpler solution is
enough.
E