Subject: bug#50034: 28.0.50; elisp capf error "Wrong type argument: listp, elisp--witness--lisp"

From: Michael Heerdegen <[email-masked]>
Date: Tue, 23 Aug 2022 04:05:07 +0200

Lars Ingebrigtsen <[email-masked]> writes:

> It fails here:
>
>                     (`(lambda ,args . ,body)
>                      (elisp--local-variables-1
>                       (append (remq '&optional (remq '&rest args)) vars)
>                       (car (last body))))

I have the impression that the clause before that is supposed to match
in this case (also see the FIXME).  It doesn't because the defmacro
macro expander adds an explicit `nil' body, i.e. the body is not empty
as assumed in that clause.

Michael.