[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#25280: 25.1; define-inline doesn't support &rest
From: |
Stefan Monnier |
Subject: |
bug#25280: 25.1; define-inline doesn't support &rest |
Date: |
Mon, 26 Dec 2016 22:21:13 -0500 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux) |
> inline.el has a comment FIXME: How can this work with CL arglists? but
> it is worse. it doesn't support &rest.
It does, but IIRC you need to use inline-letevals to evaluate the args (it
is usually needed for most/all args).
> (define-inline rest (&rest xs)
> (inline-quote (apply #'vector ,xs)))
(define-inline rest (&rest xs)
(inline-leteval xs
(inline-quote (apply #'vector ',xs))))
-- Stefan
- bug#25280: 25.1; define-inline doesn't support &rest, Leo Liu, 2016/12/26
- bug#25280: 25.1; define-inline doesn't support &rest,
Stefan Monnier <=
- bug#25280: 25.1; define-inline doesn't support &rest, Leo Liu, 2016/12/26
- bug#25280: 25.1; define-inline doesn't support &rest, Stefan Monnier, 2016/12/27
- bug#25280: 25.1; define-inline doesn't support &rest, Stefan Monnier, 2016/12/27
- bug#25280: 25.1; define-inline doesn't support &rest, Leo Liu, 2016/12/28
- bug#25280: 25.1; define-inline doesn't support &rest, Leo Liu, 2016/12/28
- bug#25280: 25.1; define-inline doesn't support &rest, Stefan Monnier, 2016/12/28
- bug#25280: 25.1; define-inline doesn't support &rest, Leo Liu, 2016/12/29