[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: gv-exander for 'list'
From: |
Michael Heerdegen |
Subject: |
Re: gv-exander for 'list' |
Date: |
Wed, 20 Mar 2019 19:15:51 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) |
Stefan Monnier <address@hidden> writes:
> > I mean that something like
> >
> > (cl-letf (((list a) (list 1)))
> > a)
> >
> > errors unless variable a is already bound.
>
> Oh, right, that too.
Ok, then let's forget the idea.
BTW, in
> + (funcall do `(list ,@(mapcar #'car getters+setters))
> + (lambda (v)
> + (macroexp-let2 macroexp-copyable-p v v
> + (macroexp-progn
> + (mapcar (lambda (x) (funcall (cdr x) `(pop ,v)))
> + getters+setters))))))))
is there a trick to avoid the redundant macroexp-progn in such a
situation? macroexp-let2 only accept a body as &rest, but since it's a
macro I can't `apply' it.
Thanks,
Michael.