Mark Triggs <[EMAIL PROTECTED]> writes:

> Miles Bader <[EMAIL PROTECTED]> writes:
>
>>    (defmacro lambda-with-constant-bindings (constants args &rest body)
>>      "Like `lambda', with constant bindings for variables in CONSTANTS.
>>    Any references in BODY to a variable listed in CONSTANTS will evaulate
>>    to the binding in effect when the lambda was created, rather than at
>>    the time it is called."
>>      ``(lambda ,',args 
>>       (let (,,@(mapcar (lambda (var) ``(,',var ',,var)) constants))
>>         (funcall ,(lambda () ,@body)))))
>
> This looks like a good solution, thanks.  Does anyone else have any
> opinions on this?

1) I didn't know that elisp programs could become as unreadable as a
   sed script ;-)

2) This is a good solution, yes.

https://gna.org/bugs/index.php?func=detailitem&item_id=1845

-- 
Matthieu

Reply via email to