help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: sending function arguments to recursive function calls


From: Stefan Monnier
Subject: Re: sending function arguments to recursive function calls
Date: Thu, 09 May 2013 08:23:31 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux)

> Is there a way (and is it better) to set lexical-binding = t locally
> for the new function?

No.  But converting existing dynamically scoped code to lexical scoping
is usually pretty easy: set lexical-binding to t at the top of the file,
then byte-compile it, then fix the warnings, and you should be good to go.

Sometimes there's some extra tricks undetected by the simple checks
performed by the byte-compiler, so it doesn't always work as smoothly,
but in most cases it's really a straightforward process.


        Stefan



reply via email to

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