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: Jean Louis <bugs <at> gnu.support>
To: Eli Zaretskii <eliz <at> gnu.org>
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 16:43:49 +0300
* Eli Zaretskii <eliz <at> gnu.org> [2020-04-13 16:38]:
> > Date: Mon, 13 Apr 2020 16:02:30 +0300
> > From: Jean Louis <bugs <at> gnu.support>
> > Cc: 40596 <at> debbugs.gnu.org
> > 
> > I understand and not that I need it. Then if the Emacs Lisp `defun'
> > does not support &key, why is then this below working?
> > 
> > (defun tmp-function-1 (text html &key one)
> >   "This one works fine"
> >   (message one))
> > 
> > (tmp-function-1 "text" "<html>" :one "Hello")
> 
> I think it interprets &key as a name of a simple argument.

A yes, close.




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.