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

Previous Next

Package: emacs;

Reported by: Daniel Mendler <mail <at> daniel-mendler.de>

Date: Fri, 13 Aug 2021 01:27:01 UTC

Severity: normal

Found in version 28.0.50

Done: Stefan Monnier <monnier <at> iro.umontreal.ca>

Bug is archived. No further changes may be made.

Full log


Message #8 received at 50034 <at> debbugs.gnu.org (full text, mbox):

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Daniel Mendler <mail <at> daniel-mendler.de>
Cc: Stefan Monnier <monnier <at> iro.umontreal.ca>, 50034 <at> debbugs.gnu.org
Subject: Re: bug#50034: 28.0.50; elisp capf error "Wrong type argument:
 listp, elisp--witness--lisp"
Date: Fri, 13 Aug 2021 14:13:27 +0200
Daniel Mendler <mail <at> daniel-mendler.de> writes:

> Steps to reproduce:
>
> 1. Start "emacs -Q"
> 2. Enter "(defmacro foo bar" in the scratch buffer
> 3. Press M-<tab> to invoke 'completion-at-point'
>
> The capf will throw the error "Wrong type argument: listp,
> elisp--witness--lisp". This error will be shown on Emacs 27 and Emacs 28.

Slightly simpler repro:

(defmacro foo bar
M-: (elisp--local-variables) RET

It fails here:

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

where it expects args to be a list, but it's the symbol
`elisp--witness--lisp'.  I'm not quite sure what the correct fix is
here, so I've added Stefan to the CCs.  :-)

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




This bug report was last modified 2 years and 267 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.