From unknown Mon Jun 23 02:20:22 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#40596 <40596@debbugs.gnu.org> To: bug#40596 <40596@debbugs.gnu.org> Subject: Status: 28.0.50; Function with more than one key gives "wrong number of arguments" error Reply-To: bug#40596 <40596@debbugs.gnu.org> Date: Mon, 23 Jun 2025 09:20:22 +0000 retitle 40596 28.0.50; Function with more than one key gives "wrong number = of arguments" error reassign 40596 emacs submitter 40596 Jean Louis severity 40596 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Mon Apr 13 08:20:39 2020 Received: (at submit) by debbugs.gnu.org; 13 Apr 2020 12:20:39 +0000 Received: from localhost ([127.0.0.1]:59332 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jNy4t-0004pz-3R for submit@debbugs.gnu.org; Mon, 13 Apr 2020 08:20:39 -0400 Received: from lists.gnu.org ([209.51.188.17]:38036) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jNx8Z-0001Gq-C9 for submit@debbugs.gnu.org; Mon, 13 Apr 2020 07:20:24 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:59488) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jNx8T-0000U8-Or for bug-gnu-emacs@gnu.org; Mon, 13 Apr 2020 07:20:23 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,URIBL_BLOCKED autolearn=disabled version=3.3.2 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jNx8S-0004Hs-B6 for bug-gnu-emacs@gnu.org; Mon, 13 Apr 2020 07:20:17 -0400 Received: from stw1.rcdrun.com ([217.170.207.13]:36509) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1jNx8S-00040v-3c for bug-gnu-emacs@gnu.org; Mon, 13 Apr 2020 07:20:16 -0400 Received: from protected.rcdrun.com ([::ffff:41.210.141.64]) (AUTH: PLAIN admin, TLS: TLS1.2,256bits,ECDHE_RSA_AES_256_CBC_SHA1) by stw1.rcdrun.com with UTF8ESMTPSA id 0000000000079CB9.000000005E944ACB.0000568A; Mon, 13 Apr 2020 04:19:37 -0700 Received: from localhost (localhost [127.0.0.1]) (uid 1001) by protected.rcdrun.com with local id 00000000000C7379.000000005E944AB7.00004664; Mon, 13 Apr 2020 13:19:19 +0200 From: Jean Louis To: bug-gnu-emacs@gnu.org Subject: 28.0.50; Function with more than one key gives "wrong number of arguments" error X-Hashcash: 1:20:200413:bug-gnu-emacs@gnu.org::2RI9AFo98YN3cmlD:0000000000000000000000000000000000000000IdNf Date: Mon, 13 Apr 2020 14:19:10 +0300 Message-ID: <86ftd78wgh.fsf@protected.rcdrun.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 217.170.207.13 X-Spam-Score: 0.5 (/) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Mon, 13 Apr 2020 08:20:33 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.5 (/) Here is something that could be a bug, I cannot know at this moment, as I am researching yet if I can use &key with Emacs's `defun': (defun tmp-function-1 (text html &key one) "This one works fine" (message one)) (tmp-function-1 "text" "" :one "Hello") (defun tmp-function-2 (text html &key one two) "This one does not work, wrong number of arguments" (message one)) (tmp-function-1 "text" "" :one "Hello" :two "But not alright") Evaluating the last function does not work, it gives the error: Debugger entered--Lisp error: (wrong-number-of-arguments ((t) (text html &key one) "This one works fine" (message one)) 6) tmp-function-1("text" "" :one "Hello" :two "But not alright") eval((tmp-function-1 "text" "" :one "Hello" :two "But not alright") nil) elisp--eval-last-sexp(nil) eval-last-sexp(nil) funcall-interactively(eval-last-sexp nil) call-interactively(eval-last-sexp nil nil) command-execute(eval-last-sexp) I have tried searching the manual for Emacs Lisp for anything related to `&key' and I cannot find any references, in my opinion the description of `defun' in the Emacs Lisp manual is not satisfactorily. Jean In GNU Emacs 28.0.50 (build 5, x86_64-pc-linux-gnu, X toolkit, cairo version 1.14.8, Xaw3d scroll bars) of 2020-03-28 built on protected.rcdrun.com Repository revision: dceba13ce57ed0cb726e89566197f77359a38d91 Repository branch: master Windowing system distributor 'The X.Org Foundation', version 11.0.11907000 System Description: Hyperbola GNU/Linux-libre Recent messages: Mark set tmp-function-2 Entering debugger... Back to top level tmp-function-2 Entering debugger... previous-line: Beginning of buffer [4 times] Back to top level kill-line: End of buffer [6 times] Mark set Configured using: 'configure --prefix=/package/text/emacs-2020-03-28 --with-modules --without-gpm --with-x-toolkit=lucid PKG_CONFIG_PATH=/home/data1/protected/GNUstep/Library/Libraries/pkgconfig:/usr/lib/pkgconfig' Configured features: XAW3D XPM JPEG TIFF GIF PNG RSVG CAIRO SOUND DBUS GSETTINGS GLIB NOTIFY INOTIFY ACL GNUTLS LIBXML2 FREETYPE HARFBUZZ M17N_FLT LIBOTF ZLIB TOOLKIT_SCROLL_BARS LUCID X11 XDBE XIM MODULES THREADS JSON PDUMPER LCMS2 GMP Important settings: value of $LC_ALL: de_DE.UTF-8 value of $LANG: de_DE.UTF-8 locale-coding-system: utf-8-unix Major mode: Lisp Interaction Minor modes in effect: tooltip-mode: t global-eldoc-mode: t eldoc-mode: t electric-indent-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t Load-path shadows: None found. Features: (shadow sort hashcash mail-extr emacsbug message rmc puny dired dired-loaddefs format-spec rfc822 mml mml-sec password-cache epa derived epg epg-config gnus-util rmail rmail-loaddefs text-property-search time-date subr-x seq byte-opt gv bytecomp byte-compile cconv mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils help-fns radix-tree cl-print debug backtrace help-mode easymenu find-func cl-loaddefs cl-lib tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type mwheel term/x-win x-win term/common-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list replace newcomment text-mode elisp-mode lisp-mode prog-mode register page tab-bar menu-bar rfn-eshadow isearch timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core term/tty-colors frame minibuffer cl-generic cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese composite charscript charprop case-table epa-hook jka-cmpr-hook help simple abbrev obarray cl-preloaded nadvice loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote threads dbusbind inotify lcms2 dynamic-setting system-font-setting font-render-setting cairo x-toolkit x multi-tty make-network-process emacs) Memory information: ((conses 16 52165 9031) (symbols 48 6514 1) (strings 32 18090 1316) (string-bytes 1 578502) (vectors 16 10940) (vector-slots 8 141658 11450) (floats 8 27 48) (intervals 56 546 84) (buffers 1000 13)) -- Thanks, Jean Louis From debbugs-submit-bounces@debbugs.gnu.org Mon Apr 13 08:30:37 2020 Received: (at 40596) by debbugs.gnu.org; 13 Apr 2020 12:30:37 +0000 Received: from localhost ([127.0.0.1]:59340 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jNyEX-00056n-7X for submit@debbugs.gnu.org; Mon, 13 Apr 2020 08:30:37 -0400 Received: from eggs.gnu.org ([209.51.188.92]:50551) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jNyEW-00056a-Ep for 40596@debbugs.gnu.org; Mon, 13 Apr 2020 08:30:36 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:48278) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1jNyER-0006ML-2t; Mon, 13 Apr 2020 08:30:31 -0400 Received: from [176.228.60.248] (port=1982 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1jNyEQ-0005Y0-67; Mon, 13 Apr 2020 08:30:30 -0400 Date: Mon, 13 Apr 2020 15:30:21 +0300 Message-Id: <831rork1pe.fsf@gnu.org> From: Eli Zaretskii To: Jean Louis In-Reply-To: <86ftd78wgh.fsf@protected.rcdrun.com> (message from Jean Louis on Mon, 13 Apr 2020 14:19:10 +0300) Subject: Re: bug#40596: 28.0.50; Function with more than one key gives "wrong number of arguments" error References: <86ftd78wgh.fsf@protected.rcdrun.com> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 40596 Cc: 40596@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) > From: Jean Louis > Date: Mon, 13 Apr 2020 14:19:10 +0300 > > Here is something that could be a bug, I cannot know at this moment, as > I am researching yet if I can use &key with Emacs's `defun': > > (defun tmp-function-1 (text html &key one) > "This one works fine" > (message one)) > > (tmp-function-1 "text" "" :one "Hello") > > (defun tmp-function-2 (text html &key one two) > "This one does not work, wrong number of arguments" > (message one)) > > (tmp-function-1 "text" "" :one "Hello" :two "But not alright") > > Evaluating the last function does not work, it gives the error: You need to use cl-defun, not defun. The latter doesn't support &key. From debbugs-submit-bounces@debbugs.gnu.org Mon Apr 13 09:10:52 2020 Received: (at 40596) by debbugs.gnu.org; 13 Apr 2020 13:10:52 +0000 Received: from localhost ([127.0.0.1]:59364 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jNyrU-00064Q-9y for submit@debbugs.gnu.org; Mon, 13 Apr 2020 09:10:52 -0400 Received: from stw1.rcdrun.com ([217.170.207.13]:52529) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jNyjf-0005rt-8y for 40596@debbugs.gnu.org; Mon, 13 Apr 2020 09:02:47 -0400 Received: from localhost ([::ffff:41.210.141.64]) (AUTH: PLAIN securesender, TLS: TLS1.2,256bits,ECDHE_RSA_AES_256_GCM_SHA384) by stw1.rcdrun.com with ESMTPSA id 00000000002D4971.000000005E9462EC.00005EE6; Mon, 13 Apr 2020 06:02:35 -0700 Date: Mon, 13 Apr 2020 16:02:30 +0300 From: Jean Louis To: Eli Zaretskii Subject: Re: bug#40596: 28.0.50; Function with more than one key gives "wrong number of arguments" error Message-ID: <20200413130230.GG15872@protected.rcdrun.com> References: <86ftd78wgh.fsf@protected.rcdrun.com> <831rork1pe.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline In-Reply-To: <831rork1pe.fsf@gnu.org> User-Agent: Mutt/1.10.1 (2018-07-13) X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 40596 X-Mailman-Approved-At: Mon, 13 Apr 2020 09:10:51 -0400 Cc: 40596@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) * Eli Zaretskii [2020-04-13 15:31]: > > From: Jean Louis > > Date: Mon, 13 Apr 2020 14:19:10 +0300 > > > > Here is something that could be a bug, I cannot know at this moment, as > > I am researching yet if I can use &key with Emacs's `defun': > > > > (defun tmp-function-1 (text html &key one) > > "This one works fine" > > (message one)) > > > > (tmp-function-1 "text" "" :one "Hello") > > > > (defun tmp-function-2 (text html &key one two) > > "This one does not work, wrong number of arguments" > > (message one)) > > > > (tmp-function-1 "text" "" :one "Hello" :two "But not alright") > > > > Evaluating the last function does not work, it gives the error: > > You need to use cl-defun, not defun. The latter doesn't support &key. 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" "" :one "Hello") It should not work, if Emacs Lisp does not support &key Isn't it? Jean From debbugs-submit-bounces@debbugs.gnu.org Mon Apr 13 09:38:09 2020 Received: (at 40596) by debbugs.gnu.org; 13 Apr 2020 13:38:09 +0000 Received: from localhost ([127.0.0.1]:59383 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jNzHs-0000Ml-HE for submit@debbugs.gnu.org; Mon, 13 Apr 2020 09:38:09 -0400 Received: from eggs.gnu.org ([209.51.188.92]:57008) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jNzHq-0000MG-Ho for 40596@debbugs.gnu.org; Mon, 13 Apr 2020 09:38:07 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:48890) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1jNzHl-0006R9-BH; Mon, 13 Apr 2020 09:38:01 -0400 Received: from [176.228.60.248] (port=2296 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1jNzHk-0007gm-QM; Mon, 13 Apr 2020 09:38:01 -0400 Date: Mon, 13 Apr 2020 16:37:51 +0300 Message-Id: <83y2qzik0g.fsf@gnu.org> From: Eli Zaretskii To: Jean Louis In-Reply-To: <20200413130230.GG15872@protected.rcdrun.com> (message from Jean Louis on Mon, 13 Apr 2020 16:02:30 +0300) Subject: Re: bug#40596: 28.0.50; Function with more than one key gives "wrong number of arguments" error References: <86ftd78wgh.fsf@protected.rcdrun.com> <831rork1pe.fsf@gnu.org> <20200413130230.GG15872@protected.rcdrun.com> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 40596 Cc: 40596@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) > Date: Mon, 13 Apr 2020 16:02:30 +0300 > From: Jean Louis > Cc: 40596@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" "" :one "Hello") I think it interprets &key as a name of a simple argument. From debbugs-submit-bounces@debbugs.gnu.org Mon Apr 13 09:58:03 2020 Received: (at 40596-done) by debbugs.gnu.org; 13 Apr 2020 13:58:03 +0000 Received: from localhost ([127.0.0.1]:60433 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jNzb9-00018b-4a for submit@debbugs.gnu.org; Mon, 13 Apr 2020 09:58:03 -0400 Received: from eggs.gnu.org ([209.51.188.92]:59076) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jNzb7-00017x-1M for 40596-done@debbugs.gnu.org; Mon, 13 Apr 2020 09:58:02 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:49093) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1jNzb1-0002E2-Oh; Mon, 13 Apr 2020 09:57:55 -0400 Received: from [176.228.60.248] (port=3629 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1jNzb0-0003vU-5M; Mon, 13 Apr 2020 09:57:55 -0400 Date: Mon, 13 Apr 2020 16:57:46 +0300 Message-Id: <83v9m3ij39.fsf@gnu.org> From: Eli Zaretskii To: Jean Louis In-Reply-To: <20200413134349.GH15872@protected.rcdrun.com> (message from Jean Louis on Mon, 13 Apr 2020 16:43:49 +0300) Subject: Re: bug#40596: 28.0.50; Function with more than one key gives "wrong number of arguments" error References: <86ftd78wgh.fsf@protected.rcdrun.com> <831rork1pe.fsf@gnu.org> <20200413130230.GG15872@protected.rcdrun.com> <83y2qzik0g.fsf@gnu.org> <20200413134349.GH15872@protected.rcdrun.com> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 40596-done Cc: 40596-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) > Date: Mon, 13 Apr 2020 16:43:49 +0300 > From: Jean Louis > Cc: 40596@debbugs.gnu.org > > > > (tmp-function-1 "text" "" :one "Hello") > > > > I think it interprets &key as a name of a simple argument. > > A yes, close. Done. From debbugs-submit-bounces@debbugs.gnu.org Mon Apr 13 10:41:53 2020 Received: (at 40596) by debbugs.gnu.org; 13 Apr 2020 14:41:53 +0000 Received: from localhost ([127.0.0.1]:60490 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jO0HY-0004LM-JN for submit@debbugs.gnu.org; Mon, 13 Apr 2020 10:41:53 -0400 Received: from stw1.rcdrun.com ([217.170.207.13]:52723) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jNzNc-0000Wj-JB for 40596@debbugs.gnu.org; Mon, 13 Apr 2020 09:44:04 -0400 Received: from localhost ([::ffff:41.210.141.64]) (AUTH: PLAIN securesender, TLS: TLS1.2,256bits,ECDHE_RSA_AES_256_GCM_SHA384) by stw1.rcdrun.com with ESMTPSA id 00000000002D4971.000000005E946C9C.000063D6; Mon, 13 Apr 2020 06:43:56 -0700 Date: Mon, 13 Apr 2020 16:43:49 +0300 From: Jean Louis To: Eli Zaretskii Subject: Re: bug#40596: 28.0.50; Function with more than one key gives "wrong number of arguments" error Message-ID: <20200413134349.GH15872@protected.rcdrun.com> References: <86ftd78wgh.fsf@protected.rcdrun.com> <831rork1pe.fsf@gnu.org> <20200413130230.GG15872@protected.rcdrun.com> <83y2qzik0g.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline In-Reply-To: <83y2qzik0g.fsf@gnu.org> User-Agent: Mutt/1.10.1 (2018-07-13) X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 40596 X-Mailman-Approved-At: Mon, 13 Apr 2020 10:41:52 -0400 Cc: 40596@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) * Eli Zaretskii [2020-04-13 16:38]: > > Date: Mon, 13 Apr 2020 16:02:30 +0300 > > From: Jean Louis > > Cc: 40596@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" "" :one "Hello") > > I think it interprets &key as a name of a simple argument. A yes, close. From debbugs-submit-bounces@debbugs.gnu.org Mon Apr 13 11:01:47 2020 Received: (at 40596) by debbugs.gnu.org; 13 Apr 2020 15:01:47 +0000 Received: from localhost ([127.0.0.1]:60506 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jO0ao-0005BR-UX for submit@debbugs.gnu.org; Mon, 13 Apr 2020 11:01:47 -0400 Received: from userp2130.oracle.com ([156.151.31.86]:34558) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jO0ak-0005BC-2s for 40596@debbugs.gnu.org; Mon, 13 Apr 2020 11:01:46 -0400 Received: from pps.filterd (userp2130.oracle.com [127.0.0.1]) by userp2130.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 03DEwY2k072126; Mon, 13 Apr 2020 15:01:36 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=mime-version : message-id : date : from : sender : to : cc : subject : references : in-reply-to : content-type : content-transfer-encoding; s=corp-2020-01-29; bh=OQjwtqa6d7WbE2NCLnB+WDzDnC7JDWddFE/2MclSl7Q=; b=NwhzTA9zvl60yy7qDQ6R0Q1Za4vf8ygpQ/tfwj87kreC1zVlohudSVfXOmPqxQv7b4ee 6Eq/hOVbgnGVoTmDK97mpXtYkJvM0Dsat2reek3zxZ1sVzq0Uu330nO1HRtgGJ8QDyLj xNkqxRP/2s/mLvJoGJM3HND6NwjFu9gCrYgxAXv6sf7EYFEPIcDDPgiv1V7o83uM2TqI Fn+QXz/xlpVmmcNl3jidzHgGP/PLFl0BAtItFKS57j34zgekFHRwsGgYmvz6I6KyXUiO CebpsCMGpbRVAjigRbEHJGgCM+/bRCaxzDFobt53ZJZxeRuwXesEkR3XWZGWwgg++96l 9Q== Received: from userp3020.oracle.com (userp3020.oracle.com [156.151.31.79]) by userp2130.oracle.com with ESMTP id 30b5aqy0kh-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 13 Apr 2020 15:01:35 +0000 Received: from pps.filterd (userp3020.oracle.com [127.0.0.1]) by userp3020.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 03DEuxFd110998; Mon, 13 Apr 2020 15:01:35 GMT Received: from userv0121.oracle.com (userv0121.oracle.com [156.151.31.72]) by userp3020.oracle.com with ESMTP id 30bqkxf9nm-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 13 Apr 2020 15:01:35 +0000 Received: from abhmp0007.oracle.com (abhmp0007.oracle.com [141.146.116.13]) by userv0121.oracle.com (8.14.4/8.13.8) with ESMTP id 03DF1YMi025837; Mon, 13 Apr 2020 15:01:34 GMT MIME-Version: 1.0 Message-ID: <67a3d8d3-ead2-4764-a375-95f83686c0da@default> Date: Mon, 13 Apr 2020 08:01:33 -0700 (PDT) From: Drew Adams To: Eli Zaretskii , Jean Louis Subject: RE: bug#40596: 28.0.50; Function with more than one key gives "wrong number of arguments" error References: <<86ftd78wgh.fsf@protected.rcdrun.com>> <<831rork1pe.fsf@gnu.org>> <<20200413130230.GG15872@protected.rcdrun.com>> <<83y2qzik0g.fsf@gnu.org>> In-Reply-To: <<83y2qzik0g.fsf@gnu.org>> X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.9.1 (1003210) [OL 16.0.4966.0 (x86)] Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9590 signatures=668686 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 bulkscore=0 mlxlogscore=957 adultscore=0 mlxscore=0 phishscore=0 malwarescore=0 spamscore=0 suspectscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2003020000 definitions=main-2004130115 X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9590 signatures=668686 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 bulkscore=0 impostorscore=0 clxscore=1011 priorityscore=1501 malwarescore=0 phishscore=0 spamscore=0 mlxlogscore=999 suspectscore=0 adultscore=0 mlxscore=0 lowpriorityscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2003020000 definitions=main-2004130115 X-Spam-Score: -3.1 (---) X-Debbugs-Envelope-To: 40596 Cc: 40596@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -4.1 (----) > 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)? From debbugs-submit-bounces@debbugs.gnu.org Mon Apr 13 22:16:09 2020 Received: (at 40596) by debbugs.gnu.org; 14 Apr 2020 02:16:09 +0000 Received: from localhost ([127.0.0.1]:32933 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jOB7Q-0002kY-Mo for submit@debbugs.gnu.org; Mon, 13 Apr 2020 22:16:09 -0400 Received: from eggs.gnu.org ([209.51.188.92]:57918) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jOB7P-0002kL-Uz for 40596@debbugs.gnu.org; Mon, 13 Apr 2020 22:16:08 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:33168) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1jOB7K-0000GB-Le; Mon, 13 Apr 2020 22:16:02 -0400 Received: from rms by fencepost.gnu.org with local (Exim 4.82) (envelope-from ) id 1jOB7I-00047L-Ax; Mon, 13 Apr 2020 22:16:00 -0400 Content-Type: text/plain; charset=Utf-8 From: Richard Stallman To: Drew Adams In-Reply-To: <67a3d8d3-ead2-4764-a375-95f83686c0da@default> (message from Drew Adams on Mon, 13 Apr 2020 08:01:33 -0700 (PDT)) Subject: Re: bug#40596: 28.0.50; Function with more than one key gives "wrong number of arguments" error References: <<86ftd78wgh.fsf@protected.rcdrun.com>> <<831rork1pe.fsf@gnu.org>> <<20200413130230.GG15872@protected.rcdrun.com>> <<83y2qzik0g.fsf@gnu.org>> <67a3d8d3-ead2-4764-a375-95f83686c0da@default> Message-Id: Date: Mon, 13 Apr 2020 22:16:00 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 40596 Cc: eliz@gnu.org, bugs@gnu.support, 40596@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: rms@gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) [[[ To any NSA and FBI agents reading my email: please consider ]]] [[[ whether defending the US Constitution against all enemies, ]]] [[[ foreign or domestic, requires you to follow Snowden's example. ]]] > 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)? I think that is a good idea. -- Dr Richard Stallman Chief GNUisance of the GNU Project (https://gnu.org) Founder, Free Software Foundation (https://fsf.org) Internet Hall-of-Famer (https://internethalloffame.org) From unknown Mon Jun 23 02:20:22 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Tue, 12 May 2020 11:24:09 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator