From unknown Fri Jun 13 10:31:21 2025 X-Loop: help-debbugs@gnu.org Subject: bug#33150: 27.0.50; defun, keyword option Resent-From: =?UTF-8?Q?=E6=BF=B1=E7=94=B0=E5=92=8C=E6=98=8E?= Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 25 Oct 2018 15:21:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 33150 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 33150@debbugs.gnu.org X-Debbugs-Original-To: "bug-gnu-emacs@gnu.org" Received: via spool by submit@debbugs.gnu.org id=B.154048083529334 (code B ref -1); Thu, 25 Oct 2018 15:21:02 +0000 Received: (at submit) by debbugs.gnu.org; 25 Oct 2018 15:20:35 +0000 Received: from localhost ([127.0.0.1]:42564 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gFhR5-0007d4-CO for submit@debbugs.gnu.org; Thu, 25 Oct 2018 11:20:35 -0400 Received: from eggs.gnu.org ([208.118.235.92]:37452) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gFaC3-0000i2-He for submit@debbugs.gnu.org; Thu, 25 Oct 2018 03:36:36 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gFaBr-0001JR-Rr for submit@debbugs.gnu.org; Thu, 25 Oct 2018 03:36:30 -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,FREEMAIL_FROM, HTML_MESSAGE autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:53775) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gFaBn-0001Hl-LA for submit@debbugs.gnu.org; Thu, 25 Oct 2018 03:36:20 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:46787) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gFaBg-0005Pb-A7 for bug-gnu-emacs@gnu.org; Thu, 25 Oct 2018 03:36:19 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gFaBc-00019r-D6 for bug-gnu-emacs@gnu.org; Thu, 25 Oct 2018 03:36:12 -0400 Received: from mail-it1-x132.google.com ([2607:f8b0:4864:20::132]:33747) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gFaBb-0000mp-W6 for bug-gnu-emacs@gnu.org; Thu, 25 Oct 2018 03:36:08 -0400 Received: by mail-it1-x132.google.com with SMTP id h6-v6so1477836ith.0 for ; Thu, 25 Oct 2018 00:35:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=message-id:mime-version:to:from:subject:date:importance; bh=t90tn5EyLYLcnMPLODlUJA/ZsFUy2mR+nPSny29Ys5k=; b=MvQY6YhWxuLzBKZ6r/onyDOMnummv9h4SxrqQF3RfIh1nzLgLMJXcNu1D8BDFn/Arx vwgsLFreW5wvbmrEXNdMv2TLAbpjkp+9R3CN4h/j/lGz6e7mBbYt9xjkfRylecWMw4bp 30dfrRzzpxchXJZ0EwEwt/pVVTCaoZQuGv1eIUmPgPbCcoX99ssKB2a0GUd7avKRLATN 57t96iS9PZKI2aLIfnTiFUFkI5n7nVFeFtKBRD17WqCZEXz4kwF6qJbtrgaL1AWlF3tU i97EnhVJoFPcIOKoMEsepZsuoO/aNGuguPorLE8FBLfFkFna8Jg7ByPVLx09kkHHS4LS 56PA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:message-id:mime-version:to:from:subject:date :importance; bh=t90tn5EyLYLcnMPLODlUJA/ZsFUy2mR+nPSny29Ys5k=; b=lbpIpafwn9br8R2GB98uVxRSGVUdLuqwKHl+0eRWAzbMRIvpbbkpoA14uGD9tOxMJ0 GAK2oGPi4JUqfCTCmexDybUkK6LYoZ/Med0114dpqC3zqewYF/S/vx4nJ2m4LO7gFYNE /BYG71J1naJ+y5slA4TJsBqujxLEBOc4TErV98w6O5+OZ2FmhAM//rkB/EyUmF6faq9M s8LEMk15cCEz4ebeON8rDZ6ha+XL1+VMVEY+kMuSlkbK/bCXj6y3fxMFbjKl07hKqXor ytAfCe+nqHjSGKq4PPHLcDHvoqn7hi1+yD/oSv4W0lxOf8OXhZk1vehq0VdaVBmDe+Vc WmeQ== X-Gm-Message-State: AGRZ1gK9rztPVIl6urx8LxNWlDIlvk7hCAeKQe2epVwrHs3BgXhBnlHT BeyqWS7VY2WaGnWNRhhszVG/zes= X-Google-Smtp-Source: AJdET5e+qPSKUeiYs7gJU5llyOPciSSHtgdiVFTaOuALlCRZPis1VAW0eJqi5cypgdCbhFNwXcQ9yg== X-Received: by 2002:a02:6a16:: with SMTP id l22-v6mr313543jac.9.1540452928895; Thu, 25 Oct 2018 00:35:28 -0700 (PDT) Received: from ?IPv6:240b:251:9840:600:fcea:326e:334f:10f0? ([240b:251:9840:600:fcea:326e:334f:10f0]) by smtp.gmail.com with ESMTPSA id f15-v6sm218824ita.16.2018.10.25.00.35.27 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 25 Oct 2018 00:35:28 -0700 (PDT) Message-ID: <5bd17240.1c69fb81.b5b50.1535@mx.google.com> MIME-Version: 1.0 From: =?UTF-8?Q?=E6=BF=B1=E7=94=B0=E5=92=8C=E6=98=8E?= Date: Thu, 25 Oct 2018 16:35:25 +0900 Importance: normal X-Priority: 3 Content-Type: multipart/alternative; boundary="_B6A6D02D-6017-4AEE-B53F-EF3DA342FC97_" X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.0 (----) X-Mailman-Approved-At: Thu, 25 Oct 2018 11: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: -5.0 (-----) --_B6A6D02D-6017-4AEE-B53F-EF3DA342FC97_ Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" (defun test-f (&key a b) (or a b)) -> test-f (test-f :a 1) There happen an error: (wrong-number-of-arguments (lambda (&key a b) (or a b)) 2) I am expecting the return value is 1. In GNU Emacs 27.0.50 (build 1, x86_64-w64-mingw32) of 2018-10-20 built on INTELLIFROG Repository revision: 32e411943d3f1d1546bfcb1aad8c4d4cd28857d6 Windowing system distributor 'Microsoft Corp.', version 10.0.17134 System Description: Microsoft Windows 10 Home (v10.0.1803.17134.345) Recent messages: For information about GNU Emacs and the GNU system, type C-h C-a. Entering debugger... Mark set Back to top level Making completion list... Configured using: 'configure --prefix=3D/usr/local/share/emacs --exec-prefix=3D/usr/local/share/emacs --with-sound=3Dno --with-x-toolkit=3Dno --with-toolkit-scroll-bars --without-lcms2 --without-libsystemd --without-imagemagick --without-json --without-xaw3d --without-xim --with-zlib --with-w32 --without-gpm --without-dbus --without-gsettings --without-selinux CC=3D/mingw64/bin/gcc PKG_CONFIG_PATH=3D/mingw64/lib/pkgconfig' Configured features: XPM JPEG TIFF GIF PNG RSVG NOTIFY ACL GNUTLS LIBXML2 ZLIB TOOLKIT_SCROLL_BARS THREADS GMP Important settings: value of $LANG: ENG locale-coding-system: cp932 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 mail-extr emacsbug message rmc puny seq byte-opt gv bytecomp byte-compile cconv dired dired-loaddefs format-spec rfc822 mml mml-sec password-cache epa derived epg epg-config gnus-util rmail rmail-loaddefs time-date 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 elec-pair mule-util tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type mwheel dos-w32 ls-lisp disp-table term/w32-win w32-win w32-vars term/common-win tool-bar dnd fontset image regexp-opt fringe tabulated-list replace newcomment text-mode elisp-mode lisp-mode prog-mode register page menu-bar rfn-eshadow isearch timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core term/tty-colors frame 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 minibuffer 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 w32notify w32 multi-tty make-network-process emacs) Memory information: ((conses 16 102756 9568) (symbols 48 20419 1) (strings 32 31376 2011) (string-bytes 1 824605) (vectors 16 15704) (vector-slots 8 512238 13474) (floats 8 52 236) (intervals 56 364 0) (buffers 992 15)) --_B6A6D02D-6017-4AEE-B53F-EF3DA342FC97_ Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset="utf-8"

(defun test-f (&key a b)

=C2=A0 (or a b))

-> test-f

(test-f :a 1)

There happen an error: (wrong-number-of-argument= s (lambda (&key a b) (or

a b)) 2)

I am expecting the return value is 1.=

 

 

 

In GNU Emacs 27.0.50 (build 1, x86_64-w64-mingw32)

of 2018-10-20 built on INTELLIFROG

Repository revision: 32e411943d3f1d1546bfcb1aad8c4d4cd28857d6=

Windowing system distributor 'Microsoft= Corp.', version 10.0.17134

System Descr= iption: Microsoft Windows 10 Home (v10.0.1803.17134.345)

 

Recent messages:=

For information about GNU Emacs and the= GNU system, type C-h C-a.

Entering debu= gger...

Mark set

Back to top level

Making co= mpletion list...

 

Configured using:

'c= onfigure --prefix=3D/usr/local/share/emacs

--exec-prefix=3D/usr/local/share/emacs --with-sound=3Dno

=

--with-x-toolkit=3Dno --with-toolkit-scroll-bars --wi= thout-lcms2

--without-libsystemd --with= out-imagemagick --without-json

--withou= t-xaw3d --without-xim --with-zlib --with-w32 --without-gpm

--without-dbus --without-gsettings --without-selinux

CC=3D/mingw64/bin/gcc PKG_CONFIG_PATH=3D/= mingw64/lib/pkgconfig'

 =

Configured features:

XPM JPEG TIFF GIF PNG RSVG NOTIFY ACL GNUTLS LIBXML2 ZLIB<= /p>

TOOLKIT_SCROLL_BARS THREADS GMP

 

Important setting= s:

=C2=A0 value of $LANG: ENG=

=C2=A0 locale-coding-system: cp932

<= p class=3DMsoNormal> 

Major mode: L= isp Interaction

 

Minor modes in effect:

=C2=A0 tooltip-mode: t

=C2=A0 global-el= doc-mode: t

=C2=A0 eldoc-mode: t

=C2=A0 electric-indent-mode: t

=C2=A0 mouse-wheel-mode: t

=C2=A0 tool-bar-mode: t

=C2=A0 men= u-bar-mode: t

=C2=A0 file-name-shadow-mo= de: t

=C2=A0 global-font-lock-mode: t

=C2=A0 font-lock-mode: t

=C2=A0 blink-cursor-mode: t

=C2=A0 auto-composition-mode: t

= =C2=A0 auto-encryption-mode: t

=C2=A0 au= to-compression-mode: t

=C2=A0 line-numbe= r-mode: t

=C2=A0 transient-mark-mode: t<= o:p>

 

Load-path shadows:

None found.

 

Featu= res:

(shadow sort mail-extr emacsbug mes= sage rmc puny seq byte-opt gv

bytecomp b= yte-compile cconv dired dired-loaddefs format-spec rfc822 mml

mml-sec password-cache epa derived epg epg-config gnu= s-util rmail

rmail-loaddefs time-date mm= -decode mm-bodies mm-encode mail-parse

r= fc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045<= /p>

ietf-drums mm-util mail-prsvr mail-utils help-fns r= adix-tree cl-print

debug backtrace help-= mode easymenu find-func cl-loaddefs cl-lib

elec-pair mule-util tooltip eldoc electric uniquify ediff-hook vc-hooks<= o:p>

lisp-float-type mwheel dos-w32 ls-lisp d= isp-table term/w32-win w32-win

w32-vars = term/common-win tool-bar dnd fontset image regexp-opt fringe

=

tabulated-list replace newcomment text-mode elisp-mode= lisp-mode

prog-mode register page menu-= bar rfn-eshadow isearch timer select

scr= oll-bar mouse jit-lock font-lock syntax facemenu font-core

term/tty-colors frame cl-generic cham georgian utf-8-lan= g 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-t= able epa-hook jka-cmpr-hook

help simple = abbrev obarray minibuffer cl-preloaded nadvice loaddefs

button faces cus-face macroexp files text-properties overla= y sha1 md5

base64 format env code-pages = mule custom widget hashtable-print-readable

backquote threads w32notify w32 multi-tty make-network-process emacs)

 

Memory information:

((conses 16 102756 = 9568)

(symbols 48 20419 1)

(strings 32 31376 2011)

(string-bytes 1 824605)

(vecto= rs 16 15704)

(vector-slots 8 512238 134= 74)

(floats 8 52 236)

(intervals 56 364 0)

= (buffers 992 15))

= --_B6A6D02D-6017-4AEE-B53F-EF3DA342FC97_-- From unknown Fri Jun 13 10:31:21 2025 X-Loop: help-debbugs@gnu.org Subject: bug#33150: 27.0.50; defun, keyword option Resent-From: Noam Postavsky Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 25 Oct 2018 22:15:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 33150 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: =?UTF-8?Q?=E6=BF=B1=E7=94=B0=E5=92=8C=E6=98=8E?= Cc: 33150@debbugs.gnu.org Received: via spool by 33150-submit@debbugs.gnu.org id=B33150.154050567012616 (code B ref 33150); Thu, 25 Oct 2018 22:15:01 +0000 Received: (at 33150) by debbugs.gnu.org; 25 Oct 2018 22:14:30 +0000 Received: from localhost ([127.0.0.1]:42978 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gFntd-0003HL-TR for submit@debbugs.gnu.org; Thu, 25 Oct 2018 18:14:30 -0400 Received: from mail-it1-f181.google.com ([209.85.166.181]:54117) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gFntc-0003H5-4W; Thu, 25 Oct 2018 18:14:28 -0400 Received: by mail-it1-f181.google.com with SMTP id q70-v6so3506972itb.3; Thu, 25 Oct 2018 15:14:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-transfer-encoding; bh=gPeoGDtTgKF/HGowFpSAMP9j/fXArMoRxz8KXlJwaSw=; b=WM3nk1/J2o9ygcrtqN+iK6Nx6ZxiyoPl6QateBVyYrmbZMxEfwslM7J4nbHM1jwDBU wzF1lxzD7nwN0OpD5ekI0Dg0A7SsDD3SV9GjpXFb63urasnF3+/LN1ZTmNhyqK0eeGnY UUX4q18PU2q1kQ0QzdFbj0KuICadnS7G/4vhHOrtMXW0hiN8313jOIQFFh/R7SoORrOL 5SmrFfD91G4m0+DNKVybM2uYDqQdZB5fMHAwu91exFyEPOCjKPGfiFZ9ddGb9PnqbmlZ aiGzodDmShjPPTbosijtgvKgweu17KbrQrbO/1mHvT88KDaSU+JNVZTq3mD5Sb86nemF t5Ug== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version:content-transfer-encoding; bh=gPeoGDtTgKF/HGowFpSAMP9j/fXArMoRxz8KXlJwaSw=; b=Uzs8Zl0oTUfDJmfR6Jj/gRjn0ztO37re957DcoT2VoGf0LS6ES9UI3JioFZB9qiOcr 0RdElUY22u3/CuDQNFWyQLQaahwoQTuhj+ExwBqsigkB1ioOrqb/EQGz4hh+v2z/3R04 Rq5R5Tb+Uc0lB+I1deBCoNfl38WIm3oFjRfjRBLcfMlVxPQlDDq6BoM+Im8HXxo6z597 al1hA4/XLLXUp7O59tILnJXISuVS/UsE0z5gAAYvYlfJAIZr4UOONXNornpiKsHMMOVl jtGZ9wlf/CWmsWNyXrsLd3OXsLJT4GnOZX5OJcYt/TsTnec/sJKDytnnjdHJco9SS9tV LYDg== X-Gm-Message-State: AGRZ1gLPX9RobC/dF9UsLmL6u/KRYSfW5a327gb2StbfHe1ccjd7SZUc u5AEoA4H40SJr8MugehZ9U1QWP32 X-Google-Smtp-Source: AJdET5c4/jVNoah1HYVmNU1N+/Z6DqtVN0EdtMURAOyztalXBxrYao7PqFoPygAX76KcD7BKTHRQ4A== X-Received: by 2002:a02:b699:: with SMTP id i25-v6mr820017jam.117.1540505662438; Thu, 25 Oct 2018 15:14:22 -0700 (PDT) Received: from zebian (cbl-45-2-119-34.yyz.frontiernetworks.ca. [45.2.119.34]) by smtp.googlemail.com with ESMTPSA id l15-v6sm3045993iok.78.2018.10.25.15.14.20 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 25 Oct 2018 15:14:21 -0700 (PDT) From: Noam Postavsky References: <5bd17240.1c69fb81.b5b50.1535@mx.google.com> Date: Thu, 25 Oct 2018 18:14:20 -0400 In-Reply-To: <5bd17240.1c69fb81.b5b50.1535@mx.google.com> ("=?UTF-8?Q?=E6=BF=B1=E7=94=B0=E5=92=8C=E6=98=8E?="'s message of "Thu, 25 Oct 2018 16:35:25 +0900") Message-ID: <87o9bhllmr.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.0 (/) 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 (-) tags 33150 notabug close 33150 quit =E6=BF=B1=E7=94=B0=E5=92=8C=E6=98=8E writes: > (defun test-f (&key a b) > (or a b)) > -> test-f > (test-f :a 1) > There happen an error: (wrong-number-of-arguments (lambda (&key a b) (or > a b)) 2) > I am expecting the return value is 1. You're looking for cl-defun, plain Emacs Lisp defun doesn't support &key (so you defined a function of three args, where the first arg is called "&key").