From unknown Mon Jun 23 23:50: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#29345 <29345@debbugs.gnu.org> To: bug#29345 <29345@debbugs.gnu.org> Subject: Status: 27.0.50; Error message for cl-destructuring-bind could be improved Reply-To: bug#29345 <29345@debbugs.gnu.org> Date: Tue, 24 Jun 2025 06:50:22 +0000 retitle 29345 27.0.50; Error message for cl-destructuring-bind could be imp= roved reassign 29345 emacs submitter 29345 Philipp Stephani severity 29345 minor tag 29345 fixed thanks From debbugs-submit-bounces@debbugs.gnu.org Fri Nov 17 15:30:24 2017 Received: (at submit) by debbugs.gnu.org; 17 Nov 2017 20:30:24 +0000 Received: from localhost ([127.0.0.1]:45359 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eFnHM-0002Nv-0b for submit@debbugs.gnu.org; Fri, 17 Nov 2017 15:30:24 -0500 Received: from eggs.gnu.org ([208.118.235.92]:43534) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eFnHK-0002Ng-Sv for submit@debbugs.gnu.org; Fri, 17 Nov 2017 15:30:23 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eFnHD-0007x8-NV for submit@debbugs.gnu.org; Fri, 17 Nov 2017 15:30:16 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: * X-Spam-Status: No, score=1.1 required=5.0 tests=BAYES_50, FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,T_DKIM_INVALID autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:57052) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1eFnHD-0007wk-GO for submit@debbugs.gnu.org; Fri, 17 Nov 2017 15:30:15 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:34477) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eFnHC-0008Gl-23 for bug-gnu-emacs@gnu.org; Fri, 17 Nov 2017 15:30:15 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eFnHA-0007so-S7 for bug-gnu-emacs@gnu.org; Fri, 17 Nov 2017 15:30:14 -0500 Received: from mail-wm0-x232.google.com ([2a00:1450:400c:c09::232]:43633) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eFnHA-0007rI-K2 for bug-gnu-emacs@gnu.org; Fri, 17 Nov 2017 15:30:12 -0500 Received: by mail-wm0-x232.google.com with SMTP id x63so8739916wmf.2 for ; Fri, 17 Nov 2017 12:30:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:date:message-id:mime-version :content-transfer-encoding; bh=DQH42O0uEMbyalB+3BMSag21pRF2S9vaiDoRZsNq7Uk=; b=p05Y+h4Pg0BKAM/NYDeFIpAHXn6v22o3iJu1hubqZHEru1drRey9kHVMCCjGMqTLer q0/x82g47BO3GbgSMcnhCrcprkOXjzhivHKb+htZSpN3HxCzXMZl7cdUyQzkwCxkhdMy rlxHGw2Jpqo9Ou9xKCrU+1wIn2XuRn+pReszUwMRJxG3FfD70W7OQKCfRzHw8zNu4gje pzzQ9BIXcLFofOyXfnMRN+jyGR9gVGDY7Yy8CGyaRcJGajeZkcHQSUkYG0mq60B/5d73 SGsVUS04wvhaXT8w7HuqS4OmKo/UilFjml6u4G/qH6Qq9WJn5LWFf4McIi0XITzE9Ay+ rn+Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:mime-version :content-transfer-encoding; bh=DQH42O0uEMbyalB+3BMSag21pRF2S9vaiDoRZsNq7Uk=; b=IOBzBYW4Yi10pIEVcm9IuEFHjjnn/bQA7P9pV5SNjv/TZ5xZsYiLeqs9bsLJfFlYVZ wk2AiIRJXbVQ9vAGgJmrV5o5qfcZIZFcXTuDnMjHydQr/3vzx88MZPmskUgXyZg5KI4D 01PzBQdS1uCoB+avfne2/jHYyRYAPCJthPKYSuJQBctN41eCKmCAsRCbLzLXHpFpGsEk hahVtURb56yZiJD8VoMb7Ywib7LVu3tFch/MuOTidRfGUzlDMVUYsJHjJTdaRGagXtOu O/euQlhF3Cg7sY3HSDOf6Mgv/5m4Hn372T26ZiEKZ3e1fe7Cm3Uo92fSg1Ndj+UC8nfz SFGQ== X-Gm-Message-State: AJaThX61YxkdjRWRRJVhAKzGLfgTlBV4JWWbHj2A+39NHaa1Y1QTlpWp qdiJOtAJZFucX9ezoTY0tvweEaQs X-Google-Smtp-Source: AGs4zMaNuoCc0WLaCwSpXSj5hve0E2H92AU30xZtQ11tZYq/HSPnNiB+XXWRX8YsjKmGdReWuBzZMA== X-Received: by 10.28.63.143 with SMTP id m137mr5261623wma.19.1510950610911; Fri, 17 Nov 2017 12:30:10 -0800 (PST) Received: from a.muc.corp.google.com ([2a00:79e0:15:4:bfda:710c:4a38:a674]) by smtp.gmail.com with ESMTPSA id m23sm3366885wmc.29.2017.11.17.12.30.10 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 17 Nov 2017 12:30:10 -0800 (PST) From: Philipp Stephani To: bug-gnu-emacs@gnu.org Subject: 27.0.50; Error message for cl-destructuring-bind could be improved Date: Fri, 17 Nov 2017 21:30:09 +0100 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable 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: -3.8 (---) X-Debbugs-Envelope-To: submit 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: -3.8 (---) $ emacs -Q -batch -l cl-lib -eval '(cl-destructuring-bind (a b) (list 1))' Wrong number of arguments: nil, 1 It would be nice if the first error data item weren't nil, but e.g. `(cl-destructuring-bind (a b))` so that the error is obvious. In GNU Emacs 27.0.50 (build 12, x86_64-pc-linux-gnu, GTK+ Version 3.22.17) of 2017-11-16 built on localhost Repository revision: bc462efec89c3317a6ee3ef9404356c1c7e52bda Windowing system distributor 'The X.Org Foundation', version 11.0.11903000 System Description: Debian GNU/Linux Recent messages: For information about GNU Emacs and the GNU system, type C-h C-a. Configured using: 'configure --enable-gcc-warnings=3Dwarn-only --enable-gtk-deprecation-warnings --without-pop --with-mailutils --enable-checking --enable-check-lisp-object-type --with-modules 'CFLAGS=3D-O0 -ggdb3'' Configured features: XPM JPEG TIFF GIF PNG SOUND DBUS GSETTINGS NOTIFY GNUTLS FREETYPE XFT ZLIB TOOLKIT_SCROLL_BARS GTK3 X11 MODULES Important settings: value of $LANG: en_US.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 mail-extr emacsbug message rmc puny seq byte-opt gv bytecomp byte-compile cconv cl-loaddefs cl-lib dired dired-loaddefs format-spec rfc822 mml easymenu mml-sec password-cache epa derived epg epg-config gnus-util rmail rmail-loaddefs mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils elec-pair time-date mule-util 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 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 dbusbind inotify dynamic-setting system-font-setting font-render-setting move-toolbar gtk x-toolkit x multi-tty make-network-process emacs) Memory information: ((conses 16 95121 6651) (symbols 48 20393 1) (miscs 40 41 120) (strings 32 28283 1508) (string-bytes 1 747240) (vectors 16 14057) (vector-slots 8 497412 8738) (floats 8 49 68) (intervals 56 224 0) (buffers 992 12)) --=20 Google Germany GmbH Erika-Mann-Stra=C3=9Fe 33 80636 M=C3=BCnchen Registergericht und -nummer: Hamburg, HRB 86891 Sitz der Gesellschaft: Hamburg Gesch=C3=A4ftsf=C3=BChrer: Paul Manicle, Halimah DeLaine Prado If you received this communication by mistake, please don=E2=80=99t forward= it to anyone else (it may contain confidential or privileged information), please erase all copies of it, including all attachments, and please let the sender know it went to the wrong person. Thanks. From debbugs-submit-bounces@debbugs.gnu.org Sun Jul 14 15:42:08 2019 Received: (at 29345) by debbugs.gnu.org; 14 Jul 2019 19:42:08 +0000 Received: from localhost ([127.0.0.1]:46004 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hmkNr-0005nb-Vm for submit@debbugs.gnu.org; Sun, 14 Jul 2019 15:42:08 -0400 Received: from quimby.gnus.org ([80.91.231.51]:57464) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hmkNo-0005nA-70 for 29345@debbugs.gnu.org; Sun, 14 Jul 2019 15:42:04 -0400 Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=marnie) by quimby.gnus.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1hmkNj-0005Nv-Rd; Sun, 14 Jul 2019 21:42:02 +0200 From: Lars Ingebrigtsen To: Philipp Stephani Subject: Re: bug#29345: 27.0.50; Error message for cl-destructuring-bind could be improved References: Date: Sun, 14 Jul 2019 21:41:59 +0200 In-Reply-To: (Philipp Stephani's message of "Fri, 17 Nov 2017 21:30:09 +0100") Message-ID: <87ftn8wghk.fsf@mouse.gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Philipp Stephani writes: > $ emacs -Q -batch -l cl-lib -eval '(cl-destructuring-bind (a b) (list 1))' > Wrong number of arguments: nil, 1 > > It would be nice if the first error data item weren't nil, but > e.g. `(cl-destruct [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 29345 Cc: 29345@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 (-) Philipp Stephani writes: > $ emacs -Q -batch -l cl-lib -eval '(cl-destructuring-bind (a b) (list 1))' > Wrong number of arguments: nil, 1 > > It would be nice if the first error data item weren't nil, but > e.g. `(cl-destructuring-bind (a b))` so that the error is obvious. What about Wrong number of arguments: (a b), 1 The following patch achieves that, but since it was explicitly 'cl-none before (which is the magic value that gives you nil in that error message), I'm not sure whether this has any negative effects? Probably not, because there's this: (defvar cl--bind-block) ;Name of surrounding block, only use for `signal' data. Any opinions? diff --git a/lisp/emacs-lisp/cl-macs.el b/lisp/emacs-lisp/cl-macs.el index 4347b4b71b..8b9224bd1b 100644 --- a/lisp/emacs-lisp/cl-macs.el +++ b/lisp/emacs-lisp/cl-macs.el @@ -695,8 +695,11 @@ cl-destructuring-bind "Bind the variables in ARGS to the result of EXPR and execute BODY." (declare (indent 2) (debug (&define cl-macro-list1 def-form cl-declarations def-body))) - (let* ((cl--bind-lets nil) (cl--bind-forms nil) - (cl--bind-defs nil) (cl--bind-block 'cl-none) (cl--bind-enquote nil)) + (let* ((cl--bind-lets nil) + (cl--bind-forms nil) + (cl--bind-defs nil) + (cl--bind-block args) + (cl--bind-enquote nil)) (cl--do-arglist (or args '(&aux)) expr) (macroexp-let* (nreverse cl--bind-lets) (macroexp-progn (append (nreverse cl--bind-forms) body))))) -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Thu Jul 25 15:54:02 2019 Received: (at 29345) by debbugs.gnu.org; 25 Jul 2019 19:54:02 +0000 Received: from localhost ([127.0.0.1]:40486 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hqjoQ-0002EW-JT for submit@debbugs.gnu.org; Thu, 25 Jul 2019 15:54:02 -0400 Received: from quimby.gnus.org ([80.91.231.51]:48712) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hqjoO-0002E3-MQ for 29345@debbugs.gnu.org; Thu, 25 Jul 2019 15:54:01 -0400 Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=stories) by quimby.gnus.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1hqjoJ-0007YG-1V; Thu, 25 Jul 2019 21:53:59 +0200 From: Lars Ingebrigtsen To: Philipp Stephani Subject: Re: bug#29345: 27.0.50; Error message for cl-destructuring-bind could be improved References: <87ftn8wghk.fsf@mouse.gnus.org> Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAKlBMVEX288bvAADn39TPPTjB ur70AACxrp3rAAD2AADzAAD//wD+/5T6+ZD+/lGjukR0AAACVklEQVQ4jXWUsW/TQBTGTx0LDFck Qjbz4pimSha3AubDssTIUOSsxvIeItXqWKjR3Wghq/EWMZ5qiRmWKGPEUGWMyP/Ce2fHuFH5Btt6 v/vuvXt3Z5bsdNrWq48sSXg3DyRKnc/MK+skydRhCR9Lo/OsyAsaMs44T85Y0jXDZZDmxSw1n2mR 8Qs2yeVOQfNQ2VM2CeSeKKA67HI/LlMk6uYfuOdMW0CmbdIC9+Ly6oEc1bAHqqr0f3BZA5XvgUlK hQb7ySU2schVUARS8eJ5G1DzY5QnAHryqtuA0DoA0u/t9k9PuuC/nsn3p5FgWn+nuLXRuuxJ+nQi eiJYA3lWDTDjHhlAOiHwBWzKRRMY8EZew7D89cOOwEMROaxBCtbcBhvQ4RnPyACsTsCdHfuxAeSx CNgIXLjDcXYNRFWVg+AzLJw4dkQFvLpcBNewsNByUAMBu+Rf4VCXg+JDDTwwKz+WkoA+lqoN5tg8 eUSgL1WIwTiKPOpVCRAoAT/JUbgI/DjyPAR6CW/PALCLfZUfYW2Rj7tAYG6aRSAovtm0OWghoKm7 lqapxhx8An5kAFlG+B4EioeVBZPfYmQBjzcE8GK4DZiv9E4IOs/A24EnDeijgwNZIlzg2mo5iiwJ yUJgKVZtwF2yiCHTEJ40U+GFxSQI4ISVdjSk4KKuik8BYgErduvEtOiSmvgu63I+EYAbqJnrxwJj cxuP3ICjOq5ZLguxl7jqtS9G+gWGk+STOZcsxKoBO4wnZPPS/G0uzLFkEW3XRi9jtFRgSnF0VOdz SbwCidii/gLjA+K5dBJdvwAAAABJRU5ErkJggg== Date: Thu, 25 Jul 2019 21:53:54 +0200 In-Reply-To: <87ftn8wghk.fsf@mouse.gnus.org> (Lars Ingebrigtsen's message of "Sun, 14 Jul 2019 21:41:59 +0200") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Lars Ingebrigtsen writes: > Philipp Stephani writes: > >> $ emacs -Q -batch -l cl-lib -eval '(cl-destructuring-bind (a b) (list 1))' >> Wrong number of arguments: nil, 1 >> >> It would be nice if the fi [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 29345 Cc: 29345@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 (-) Lars Ingebrigtsen writes: > Philipp Stephani writes: > >> $ emacs -Q -batch -l cl-lib -eval '(cl-destructuring-bind (a b) (list 1))' >> Wrong number of arguments: nil, 1 >> >> It would be nice if the first error data item weren't nil, but >> e.g. `(cl-destructuring-bind (a b))` so that the error is obvious. > > What about > > Wrong number of arguments: (a b), 1 > > The following patch achieves that, but since it was explicitly 'cl-none > before (which is the magic value that gives you nil in that error > message), I'm not sure whether this has any negative effects? Probably > not, because there's this: > > (defvar cl--bind-block) ;Name of surrounding block, only use for `signal' data. > > Any opinions? There weren't any, so I'm applying the patch. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Thu Jul 25 15:57:12 2019 Received: (at control) by debbugs.gnu.org; 25 Jul 2019 19:57:12 +0000 Received: from localhost ([127.0.0.1]:40491 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hqjrU-0002L6-4t for submit@debbugs.gnu.org; Thu, 25 Jul 2019 15:57:12 -0400 Received: from quimby.gnus.org ([80.91.231.51]:48772) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hqjrS-0002Kx-9Y for control@debbugs.gnu.org; Thu, 25 Jul 2019 15:57:10 -0400 Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=marnie) by quimby.gnus.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1hqjrP-0007Z1-8T for control@debbugs.gnu.org; Thu, 25 Jul 2019 21:57:09 +0200 Date: Thu, 25 Jul 2019 21:57:06 +0200 Message-Id: <874l39rip9.fsf@mouse.gnus.org> To: control@debbugs.gnu.org From: Lars Ingebrigtsen Subject: control message for bug #29345 X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: tags 29345 fixed close 29345 27.1 quit Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: control 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 29345 fixed close 29345 27.1 quit From debbugs-submit-bounces@debbugs.gnu.org Wed Aug 07 07:09:53 2019 Received: (at 29345) by debbugs.gnu.org; 7 Aug 2019 11:09:53 +0000 Received: from localhost ([127.0.0.1]:38122 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hvJpI-00044K-SO for submit@debbugs.gnu.org; Wed, 07 Aug 2019 07:09:53 -0400 Received: from mail-ot1-f42.google.com ([209.85.210.42]:33952) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hvJpH-000447-Vm for 29345@debbugs.gnu.org; Wed, 07 Aug 2019 07:09:52 -0400 Received: by mail-ot1-f42.google.com with SMTP id n5so102707126otk.1 for <29345@debbugs.gnu.org>; Wed, 07 Aug 2019 04:09:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=rKnRqPvv5hJuOgOsvKkXbFZ90oXZUsgsne8XxKIGgkE=; b=pPiNvx8ny6TiHES/AKCTNxnu40+vKqfSWL7Q65hziEyl49TkXPNLK/EbA/ELnKc2C0 BFynfnFn0UmxswybTPbK/unkChPbJwwG0xOsMtEjsw4j0hkDIpgeYzjXFFp193J29SzE +Ss6OpUEz664bPzUhwrSeSF+rx81AlsVVaJ3gFxfo12hxpSjhrQ1+cJtJpVu4z1Z0lfS 6GJpPiz59mGI5dyRo8NyzDzRiOlXUq1LkzxfUAd7RbZ1wdZg/hwb8P0pxDQ9x9fnv5rh AA2ksBXo4mgsloKQkUSOcMw3PFGouCHQMIhtaI2K6OBsXoW44rn2RlpiX71q0c4uJOMO yGzQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=rKnRqPvv5hJuOgOsvKkXbFZ90oXZUsgsne8XxKIGgkE=; b=WdjLNvvguj74J4f1wcc78VwaH0p98PRffLiuY9l7n1qm5ktTTjDcjez5j3mwOOz6/C agWxFfdfTHGxUP72LUvOK+s/HHRjavTEZYtp7CJH6sV3+ejmBqPFU4cMX+SbJm0AOdr2 Jjh4NSDlZdxanIP+OzoLsZOu3kezGxmOjGxPiA5MK+VaVAKQazscVyzI/cjmHddTBfjF 1DCl8sGyZH4W92Z8SHf3eVDX1xtsN7Gi/1leyhy+DNT4y8eiYzfxUAoO78AM3eOeuYgk 0mFAnTH0x2ZGGVlGdGS2vbeQn/sAaxINL4ITN+KGS47Xdg2f4po8K9R9U+VrhSZCWTUb HsFQ== X-Gm-Message-State: APjAAAX1Yfnqj2eWv3lPc28Tlt2SJTRBKfO5fT1IjxFuUR/gQcMN5JiX G7hFKi/11EMKC/Q2v5WXnw41a7HM4a0hT20GBSg= X-Google-Smtp-Source: APXvYqx8OzaqRQTRRMcns2NlO3cSYDZHvMhy+IjP0U/6UWX623wJMRWHqcxz69A0FYrx6kngxfEsUT4GrMFcqXxUPIk= X-Received: by 2002:a05:6830:1197:: with SMTP id u23mr6991155otq.36.1565176186239; Wed, 07 Aug 2019 04:09:46 -0700 (PDT) MIME-Version: 1.0 References: <87ftn8wghk.fsf@mouse.gnus.org> In-Reply-To: From: Philipp Stephani Date: Wed, 7 Aug 2019 13:09:35 +0200 Message-ID: Subject: Re: bug#29345: 27.0.50; Error message for cl-destructuring-bind could be improved To: Lars Ingebrigtsen Content-Type: text/plain; charset="UTF-8" X-Spam-Score: 0.3 (/) X-Debbugs-Envelope-To: 29345 Cc: 29345@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: -0.7 (/) Am Do., 25. Juli 2019 um 21:54 Uhr schrieb Lars Ingebrigtsen : > > Lars Ingebrigtsen writes: > > > Philipp Stephani writes: > > > >> $ emacs -Q -batch -l cl-lib -eval '(cl-destructuring-bind (a b) (list 1))' > >> Wrong number of arguments: nil, 1 > >> > >> It would be nice if the first error data item weren't nil, but > >> e.g. `(cl-destructuring-bind (a b))` so that the error is obvious. > > > > What about > > > > Wrong number of arguments: (a b), 1 > > > > The following patch achieves that, but since it was explicitly 'cl-none > > before (which is the magic value that gives you nil in that error > > message), I'm not sure whether this has any negative effects? Probably > > not, because there's this: > > > > (defvar cl--bind-block) ;Name of surrounding block, only use for `signal' data. > > > > Any opinions? > > There weren't any, so I'm applying the patch. Thanks! From unknown Mon Jun 23 23:50: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: Wed, 04 Sep 2019 11:24:04 +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