[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: gv-exander for 'list'
From: |
Stefan Monnier |
Subject: |
Re: gv-exander for 'list' |
Date: |
Wed, 20 Mar 2019 15:06:28 -0400 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) |
>> + (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.
The redundant `progn` should be removed by `macroexp-let2`, but
otherwise I can't see how you could avoid the `progn` while still
using `macroexp-let2`.
Stefan