all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: bojohan+news@dd.chalmers.se (Johan Bockgård)
Subject: Re: Difficult macro question: Doing custom `let'
Date: Mon, 18 Aug 2003 20:00:19 +0200	[thread overview]
Message-ID: <yoijhe4edex8.fsf@frealaf.dd.chalmers.se> (raw)
In-Reply-To: 1xviq2u3.fsf@blue.sea.net

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

  parent reply	other threads:[~2003-08-18 18:00 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-08-18 17:43 Difficult macro question: Doing custom `let' Jari Aalto+mail.emacs
2003-08-18 17:57 ` Barry Margolin
2003-08-18 18:00 ` Johan Bockgård [this message]
2003-08-18 21:20 ` Pascal Bourguignon
  -- strict thread matches above, loose matches on Subject: below --
2003-08-18 18:20 lawrence mitchell

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=yoijhe4edex8.fsf@frealaf.dd.chalmers.se \
    --to=bojohan+news@dd.chalmers.se \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.