[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Difficult macro question: Doing custom `let'
From: |
Johan Bockgård |
Subject: |
Re: Difficult macro question: Doing custom `let' |
Date: |
Mon, 18 Aug 2003 20:00:19 +0200 |
User-agent: |
Gnus/5.1003 (Gnus v5.10.3) Emacs/21.2 (usg-unix-v) |
jari.aalto@poboxes.com (Jari Aalto+mail.emacs) writes:
> I'm trying to make a custom `let' macro. The basic idea is that the
> variables defined inside `let' should be user defined and the `let'
> form simply should set them to nil. Something like:
,----[ C-h f progv RET ]
| progv is a Lisp macro in `cl-macs'.
| (progv SYMBOLS VALUES &rest BODY)
|
| Bind SYMBOLS to VALUES dynamically in BODY.
| The forms SYMBOLS and VALUES are evaluated, and must evaluate to lists.
| Each SYMBOL in the first list is bound to the corresponding VALUE in the
| second list (or made unbound if VALUES is shorter than SYMBOLS); then the
| BODY forms are executed and their result is returned. This is much like
| a `let' form, except that the list of symbols can be computed at run-time.
`----
--
Johan Bockgård