Stefan Monnier <[EMAIL PROTECTED]> writes: > Maybe I'm way off-base, but lexical-let sounds like a better alternative. > When capturing things like the current buffer, you can just replace > > `(lambda (...) ... ,(current-buffer) ...) > with > (lexical-let ((buf (current-buffer))) > (lambda (...) ... buf ...))
With the "capture" version, you can also do (tla--lambda-with-capture (x y z) (... foo ... (capture foo) ... (capture (current-buffer)))) which I find more readable. (I've started to look at the lexical-let option too) Thanks for your help anyway. -- Matthieu _______________________________________________ Help-gnu-emacs mailing list Help-gnu-emacs@gnu.org http://lists.gnu.org/mailman/listinfo/help-gnu-emacs