Subject: Re: bug#25280: 25.1; define-inline doesn't support &rest

From: Stefan Monnier <[email-masked]>
Date: Mon, 26 Dec 2016 22:21:13 -0500

> 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