From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Jean Louis Newsgroups: gmane.emacs.bugs Subject: bug#40596: 28.0.50; Function with more than one key gives "wrong number of arguments" error 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 Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="83949"; mail-complaints-to="usenet@ciao.gmane.io" To: 40596@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Apr 13 14:21:51 2020 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jNy63-000Lkj-9X for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 13 Apr 2020 14:21:51 +0200 Original-Received: from localhost ([::1]:43808 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jNy62-00032i-9j for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 13 Apr 2020 08:21:50 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:36734) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jNy5I-0002TP-7E for bug-gnu-emacs@gnu.org; Mon, 13 Apr 2020 08:21:05 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jNy5G-0000MK-Vp for bug-gnu-emacs@gnu.org; Mon, 13 Apr 2020 08:21:04 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:47788) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1jNy5G-0000MG-TO for bug-gnu-emacs@gnu.org; Mon, 13 Apr 2020 08:21:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jNy5F-0004qt-R4 for bug-gnu-emacs@gnu.org; Mon, 13 Apr 2020 08:21:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Jean Louis Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 13 Apr 2020 12:21:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 40596 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.158678043918614 (code B ref -1); Mon, 13 Apr 2020 12:21:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 13 Apr 2020 12:20:39 +0000 Original-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 Original-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 Original-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 Original-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 Original-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 Original-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 Original-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 X-Hashcash: 1:20:200413:bug-gnu-emacs@gnu.org::2RI9AFo98YN3cmlD:0000000000000000000000000000000000000000IdNf X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] 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 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:178298 Archived-At: 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