GNU bug report logs - #40596
28.0.50; Function with more than one key gives "wrong number of arguments" error

Previous Next

Package: emacs;

Reported by: Jean Louis <bugs <at> gnu.support>

Date: Mon, 13 Apr 2020 12:21:01 UTC

Severity: normal

Found in version 28.0.50

Done: Eli Zaretskii <eliz <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Drew Adams <drew.adams <at> oracle.com>
To: Eli Zaretskii <eliz <at> gnu.org>, Jean Louis <bugs <at> gnu.support>
Cc: 40596 <at> debbugs.gnu.org
Subject: bug#40596: 28.0.50; Function with more than one key gives "wrong number of arguments" error
Date: Mon, 13 Apr 2020 08:01:33 -0700 (PDT)
> I think it interprets &key as a name of a simple argument.

This can be a gotcha, for someone coming from
another Lisp dialect that supports lambda lists
with &key.

Perhaps Emacs Lisp could post a warning (e.g. from
the byte-compiler) if a lambda list uses one of the
`&' keywords supported by, say, Common Lisp (&key,
&aux, &allow-other-keys)?




This bug report was last modified 5 years and 42 days ago.

Previous Next


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