Received: (at 26960) by debbugs.gnu.org; 9 May 2022 12:26:30 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Mon May 09 08:26:30 2022 Received: from localhost ([127.0.0.1]:56507 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1no2T8-0004E3-Ki for submit <at> debbugs.gnu.org; Mon, 09 May 2022 08:26:30 -0400 Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:21296) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <monnier@HIDDEN>) id 1no2T7-0004Dl-Pa; Mon, 09 May 2022 08:26:30 -0400 Received: from pmg2.iro.umontreal.ca (localhost.localdomain [127.0.0.1]) by pmg2.iro.umontreal.ca (Proxmox) with ESMTP id 5300D80767; Mon, 9 May 2022 08:26:24 -0400 (EDT) Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg2.iro.umontreal.ca (Proxmox) with ESMTP id 038438000B; Mon, 9 May 2022 08:26:23 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1652099183; bh=m+ZgU4RxT2w2/RS4hydurIqIwoohV2dpBDin6xUVbSs=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=mdxxVQCR5VnM4vS2UwMpuLUgia8o8vTvBeGk4PsNHm2y7tdr2qzpSCevAqwOfDVgC RdJBN3xZckIs3FXRZpEx7gOG+3xDwzhH0fayWBgQi8T/Uc9dI54N4ZdA9xj3rJuihQ oWT7H7aoSmga4YQ4+x9OR7KyUriwGmtcc9lCsYjc9YLObBXWk0/+lns1HldHMv67ds +NnE9HLkuFmH8+sfQws5n4UtEcafL8n08gjHcxJzygvdL/jt2e+d6pHY63Mlj2XczD H3UiwQUaQ+7+lZlSIqPMXmzf4kvZVTWGpDEjYgN6ZpvmhIc+uwCK+301QoUUFJj0W9 TbfWIfmBT7KWQ== Received: from pastel (unknown [45.72.221.51]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id A92A612051F; Mon, 9 May 2022 08:26:22 -0400 (EDT) From: Stefan Monnier <monnier@HIDDEN> To: Lars Ingebrigtsen <larsi@HIDDEN> Subject: Re: bug#26960: 26.0.50; Complaints about unused variable in cl-destructuring-bind Message-ID: <jwvo806vqnj.fsf-monnier+emacs@HIDDEN> References: <m2lixzj3lp.fsf@HIDDEN> <871qx4i4pe.fsf@HIDDEN> <jwv4k20yytp.fsf-monnier+emacs@HIDDEN> <8735hjdpm5.fsf@HIDDEN> Date: Mon, 09 May 2022 08:26:21 -0400 In-Reply-To: <8735hjdpm5.fsf@HIDDEN> (Lars Ingebrigtsen's message of "Mon, 09 May 2022 11:25:38 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-SPAM-INFO: Spam detection results: 0 ALL_TRUSTED -1 Passed through trusted hosts only via SMTP AWL -0.057 Adjusted score from AWL reputation of From: address BAYES_00 -1.9 Bayes spam probability is 0 to 1% DKIM_SIGNED 0.1 Message has a DKIM or DK signature, not necessarily valid DKIM_VALID -0.1 Message has at least one valid DKIM or DK signature DKIM_VALID_AU -0.1 Message has a valid DKIM or DK signature from author's domain T_SCC_BODY_TEXT_LINE -0.01 - X-SPAM-LEVEL: X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 26960 Cc: 26960 <at> debbugs.gnu.org, 8711 <at> debbugs.gnu.org, Helmut Eller <eller.helmut@HIDDEN> X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -3.3 (---) > I had a quick peek at `cl--do-arglist' (which I guess is what's creating > this form), and... I think I'll leave this for somebody else to fix. = =F0=9F=AB=A0 I did the same some years ago, FWIW :-) Stefan
bug-gnu-emacs@HIDDEN
:bug#26960
; Package emacs
.
Full text available.Lars Ingebrigtsen <larsi@HIDDEN>
to control <at> debbugs.gnu.org
.
Full text available.Received: (at 26960) by debbugs.gnu.org; 9 May 2022 09:25:51 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Mon May 09 05:25:50 2022 Received: from localhost ([127.0.0.1]:56062 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1nnzeI-0008Nr-M0 for submit <at> debbugs.gnu.org; Mon, 09 May 2022 05:25:50 -0400 Received: from quimby.gnus.org ([95.216.78.240]:39618) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <larsi@HIDDEN>) id 1nnzeH-0008NW-Ir; Mon, 09 May 2022 05:25:50 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Transfer-Encoding:Content-Type:MIME-Version:Message-ID :In-Reply-To:Date:References:Subject:Cc:To:From:Sender:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=mZKvtBIvk6H/f9vVa1qQLTrd3tsHAwO9bgLUg4Xy9Aw=; b=MBCfrFz7TwJZYUxVO9ViY6C7Rj shFnhW7FW8/RUEjCAmb5T9xyqGsozlzKJDt2h6+fbiq4FeWlle+Fw8uwkkZtvdVup4eMibklUJfR4 KWGs4RCjFQtkyxpWx1NCSR350M5IQ27VZ6bLL7rS3HwMlN10myBcRz/gQljVYbSQeUGM=; Received: from [84.212.220.105] (helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from <larsi@HIDDEN>) id 1nnze7-0003uA-Eu; Mon, 09 May 2022 11:25:41 +0200 From: Lars Ingebrigtsen <larsi@HIDDEN> To: Stefan Monnier <monnier@HIDDEN> Subject: Re: bug#26960: 26.0.50; Complaints about unused variable in cl-destructuring-bind References: <m2lixzj3lp.fsf@HIDDEN> <871qx4i4pe.fsf@HIDDEN> <jwv4k20yytp.fsf-monnier+emacs@HIDDEN> Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAABGdBTUEAALGPC/xhBQAAACBj SFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAElBMVEXZcnO+sKni39L2 9etsd4H////mjpy1AAAAAWJLR0QF+G/pxwAAAAd0SU1FB+YFCQkSKPuxcWMAAAG0SURBVDjLlVTr mdwgDCQdBOEGJNEA0jaAc/3XlBFgw92XP5HX2IsYafRySv8tv/OQ9XjlV1JVdzd3HSse8W6exIZm Ksc+dtUlCTYEu/Fv7ONFzSSp+BbolmmDD/MfEgY06Tr5TcJ5E1EWiOEOZvOQpQrSXzn3D+7rtkXO PcVpB+cAySRt4SYxEyuzs+TMpI9DTWaHc30SoD5ZBY1xhaEZWPIXccAsTL08vokl8X3aTsU/I/fI 7hQb63ajI0AIk+Ci08eJkJ8Ijh+ywg8HtTSOcu1sdiBQqDZM1BtE6FVEoaZz7sIWWV5kgeCFsABs hG+EHqbMtymlQVd95XnFUTuWhQg/oo/itgz39Jp6fAwEMLskCPDrlV3yKNShOCIfpkj804t5zju7 GINK3Ap8cMm0GzyS2Mjpc9ufpsHqGZYkrNr40/Nt5ZJVdgmFFapeu3qz8rbMyK42LQiwtGKku4IN GvKG7HZq9KQw0l6ICl+3V21FxjjNUUN/AHPdVY0LH3RhioQ5anfNJGKWo9tZHRbMLAwdPQpWTCgE X9yNeIzBkGREu+EKjvL8mKQop8YHAeOqUD+Kv6HCuLBZHCH4AAAAJXRFWHRkYXRlOmNyZWF0ZQAy MDIyLTA1LTA5VDA5OjE4OjQwKzAwOjAwELu3MAAAACV0RVh0ZGF0ZTptb2RpZnkAMjAyMi0wNS0w OVQwOToxODo0MCswMDowMGHmD4wAAAAASUVORK5CYII= X-Now-Playing: Blaine L. Reininger & Alain Goutier's _Paris en Autumne_: "Raise Your Hands" Date: Mon, 09 May 2022 11:25:38 +0200 In-Reply-To: <jwv4k20yytp.fsf-monnier+emacs@HIDDEN> (Stefan Monnier's message of "Sun, 08 May 2022 09:32:01 -0400") Message-ID: <8735hjdpm5.fsf@HIDDEN> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable 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: Stefan Monnier <monnier@HIDDEN> writes: > Indeed. If you look at the macroexpanded code, you see that > `cl-destructuring-bind` uses: > > (let* ((_ '(1 2)) > (a _) > (b (if _ (pop _) > (signal 'wrong-number-of-arguments > (list '(&whole a b [...] 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: -2.3 (--) X-Debbugs-Envelope-To: 26960 Cc: 26960 <at> debbugs.gnu.org, 8711 <at> debbugs.gnu.org, Helmut Eller <eller.helmut@HIDDEN> X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -3.3 (---) Stefan Monnier <monnier@HIDDEN> writes: > Indeed. If you look at the macroexpanded code, you see that > `cl-destructuring-bind` uses: > > (let* ((_ '(1 2)) > (a _) > (b (if _ (pop _) > (signal 'wrong-number-of-arguments > (list '(&whole a b &rest _) (length _)))))) > (print (list a b))) > > so, you can see that the problem is that `cl-destructuring-bind` tries > to avoid using gensym and "abuses" the &rest var as the "iterator" > variable while parsing the list. Hm, right. I had a quick peek at `cl--do-arglist' (which I guess is what's creating this form), and... I think I'll leave this for somebody else to fix. =F0= =9F=AB=A0 In any case, I'm unmerging these two bug reports, and closing the one that's fixed. --=20 (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no
bug-gnu-emacs@HIDDEN
:bug#26960
; Package emacs
.
Full text available.Received: (at 26960) by debbugs.gnu.org; 8 May 2022 13:32:13 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Sun May 08 09:32:13 2022 Received: from localhost ([127.0.0.1]:53716 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1nnh1B-000888-27 for submit <at> debbugs.gnu.org; Sun, 08 May 2022 09:32:13 -0400 Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:64218) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <monnier@HIDDEN>) id 1nnh18-00087o-5k; Sun, 08 May 2022 09:32:11 -0400 Received: from pmg1.iro.umontreal.ca (localhost.localdomain [127.0.0.1]) by pmg1.iro.umontreal.ca (Proxmox) with ESMTP id 7DD0910029F; Sun, 8 May 2022 09:32:04 -0400 (EDT) Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg1.iro.umontreal.ca (Proxmox) with ESMTP id 6EC12100118; Sun, 8 May 2022 09:32:02 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1652016722; bh=bwEaiuLPK3lfPJ7EMHW9+8gUMfFgpddY1m+lLaIo3nk=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=ZLqO3HDStwGn35NYJEbil16JU1q3gC7aQwXGfjaVAr7UTvwtQVz7aws0S0pqQIvbA TJESaTJ8WHUzVvwnPAC6fJ6pV0LLbO1Fd9dUM61mbt4iIIDvF05vSHpruvswL4IXds oiKFpXHO6Zz6h9HFVfNjE8isK1xtyRTCOkrfGCzm4LHKDlkgH9riuSWP+EYNqiEU1N cnI421FyFDXM2/zdSPgrL1Y9v+lulkgA9kkhFEbxYS6EF5CSPPxeaQl0/kqRqCsQCF iX+zNzg3XlcrtdaUkPFfjekSk+I9iEEFSW/ukeoyDlmTHJWMI9Rt7+Z6fHGG0UK+cy roA94U/Icz2HQ== Received: from pastel (unknown [45.72.221.51]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id 399BF120263; Sun, 8 May 2022 09:32:02 -0400 (EDT) From: Stefan Monnier <monnier@HIDDEN> To: Lars Ingebrigtsen <larsi@HIDDEN> Subject: Re: bug#26960: 26.0.50; Complaints about unused variable in cl-destructuring-bind Message-ID: <jwv4k20yytp.fsf-monnier+emacs@HIDDEN> References: <m2lixzj3lp.fsf@HIDDEN> <871qx4i4pe.fsf@HIDDEN> Date: Sun, 08 May 2022 09:32:01 -0400 In-Reply-To: <871qx4i4pe.fsf@HIDDEN> (Lars Ingebrigtsen's message of "Sun, 08 May 2022 14:33:49 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-SPAM-INFO: Spam detection results: 0 ALL_TRUSTED -1 Passed through trusted hosts only via SMTP AWL -0.044 Adjusted score from AWL reputation of From: address BAYES_00 -1.9 Bayes spam probability is 0 to 1% DKIM_SIGNED 0.1 Message has a DKIM or DK signature, not necessarily valid DKIM_VALID -0.1 Message has at least one valid DKIM or DK signature DKIM_VALID_AU -0.1 Message has a valid DKIM or DK signature from author's domain T_SCC_BODY_TEXT_LINE -0.01 - X-SPAM-LEVEL: X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 26960 Cc: 26960 <at> debbugs.gnu.org, 8711 <at> debbugs.gnu.org, Helmut Eller <eller.helmut@HIDDEN> X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -3.3 (---) > I can reproduce this in Emacs 25.1, but not in Emacs 29. That is, > there's no warning for `foo'. There's still a warning for `bar', but > that's correct, isn't it? Yes. > `ignore' is just a normal function, so _ is used there. It's not 100% normal, but yes. > However, this example from a merged bug report is giving a warning: > >> ;;; -*- lexical-binding: t; -*- >> (require 'cl-lib) >> (cl-destructuring-bind (&whole a b &rest _) '(1 2) >> (print (list a b))) > > And that seems like a bug? Indeed. If you look at the macroexpanded code, you see that `cl-destructuring-bind` uses: (let* ((_ '(1 2)) (a _) (b (if _ (pop _) (signal 'wrong-number-of-arguments (list '(&whole a b &rest _) (length _)))))) (print (list a b))) so, you can see that the problem is that `cl-destructuring-bind` tries to avoid using gensym and "abuses" the &rest var as the "iterator" variable while parsing the list. It might have been useful back in the dynbinding days because `setq` might have been a bit cheaper than `let`, but with lexical scoping `let` byte-compiles to virtually nothing. Stefan
bug-gnu-emacs@HIDDEN
:bug#26960
; Package emacs
.
Full text available.Received: (at 26960) by debbugs.gnu.org; 8 May 2022 12:34:02 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Sun May 08 08:34:02 2022 Received: from localhost ([127.0.0.1]:53625 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1nng6s-0002FO-8e for submit <at> debbugs.gnu.org; Sun, 08 May 2022 08:34:02 -0400 Received: from quimby.gnus.org ([95.216.78.240]:58714) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <larsi@HIDDEN>) id 1nng6q-0002Ep-FI; Sun, 08 May 2022 08:34:01 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=zwJWhz3b7cjiE72Val0Z80xctSspr5cXCYgN3zUaIN8=; b=PsHpgYw736VzwCvHIXgY1WN8i9 S4u5/Ug4zmtt9qXH6wpY2aSWk/zHY/9L3SWrTTF7r0W/vzcf3PrDngFdQaflCQg0jxH2IYEMmk4d1 AVpEzKQw8uRKBwB1cdNCdgUxtajrZuntyNztZbcCMrUZ8dXaFLTM/ZfK1/gfVCK6dPsU=; Received: from [84.212.220.105] (helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from <larsi@HIDDEN>) id 1nng6g-0008QD-6s; Sun, 08 May 2022 14:33:52 +0200 From: Lars Ingebrigtsen <larsi@HIDDEN> To: Helmut Eller <eller.helmut@HIDDEN> Subject: Re: bug#26960: 26.0.50; Complaints about unused variable in cl-destructuring-bind References: <m2lixzj3lp.fsf@HIDDEN> X-Now-Playing: Adult.'s _Becoming Undone_: "Undoing-Undone" Date: Sun, 08 May 2022 14:33:49 +0200 In-Reply-To: <m2lixzj3lp.fsf@HIDDEN> (Helmut Eller's message of "Sat, 21 May 2011 20:44:18 +0200") Message-ID: <871qx4i4pe.fsf@HIDDEN> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.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: Helmut Eller <eller.helmut@HIDDEN> writes: > There seems be no way to avoid a warning in code like this: > > ;; -*- lexical-binding: t -*- > (eval-when-compile (require 'cl)) > (defun foo (x) (destructuring-bind (_) x)) > (defun bar (x) (destr [...] 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: -2.3 (--) X-Debbugs-Envelope-To: 26960 Cc: 26960 <at> debbugs.gnu.org, 8711 <at> debbugs.gnu.org, Stefan Monnier <monnier@HIDDEN> X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -3.3 (---) Helmut Eller <eller.helmut@HIDDEN> writes: > There seems be no way to avoid a warning in code like this: > > ;; -*- lexical-binding: t -*- > (eval-when-compile (require 'cl)) > (defun foo (x) (destructuring-bind (_) x)) > (defun bar (x) (destructuring-bind (_) x (ignore _))) > > In foo the compiler complains because _ is never used and > it bar it complains because it is used. (I'm going through old bug reports that unfortunately weren't resolved at the time.) I can reproduce this in Emacs 25.1, but not in Emacs 29. That is, there's no warning for `foo'. There's still a warning for `bar', but that's correct, isn't it? `ignore' is just a normal function, so _ is used there. However, this example from a merged bug report is giving a warning: > ;;; -*- lexical-binding: t; -*- > (require 'cl-lib) > (cl-destructuring-bind (&whole a b &rest _) '(1 2) > (print (list a b))) And that seems like a bug? -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no
bug-gnu-emacs@HIDDEN
:bug#26960
; Package emacs
.
Full text available.npostavs@HIDDEN
to control <at> debbugs.gnu.org
.
Full text available.Received: (at submit) by debbugs.gnu.org; 17 May 2017 09:23:41 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Wed May 17 05:23:41 2017 Received: from localhost ([127.0.0.1]:49549 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1dAvBF-0004He-01 for submit <at> debbugs.gnu.org; Wed, 17 May 2017 05:23:41 -0400 Received: from eggs.gnu.org ([208.118.235.92]:47810) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <p.stephani2@HIDDEN>) id 1dAvBD-0004HQ-Oa for submit <at> debbugs.gnu.org; Wed, 17 May 2017 05:23:40 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from <p.stephani2@HIDDEN>) id 1dAvB7-0000Ln-6O for submit <at> debbugs.gnu.org; Wed, 17 May 2017 05:23:34 -0400 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]:43822) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from <p.stephani2@HIDDEN>) id 1dAvB7-0000LY-2h for submit <at> debbugs.gnu.org; Wed, 17 May 2017 05:23:33 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:38773) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <p.stephani2@HIDDEN>) id 1dAvB5-0004dj-Mo for bug-gnu-emacs@HIDDEN; Wed, 17 May 2017 05:23:32 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from <p.stephani2@HIDDEN>) id 1dAvB4-0000Kp-Cm for bug-gnu-emacs@HIDDEN; Wed, 17 May 2017 05:23:31 -0400 Received: from mail-wm0-x229.google.com ([2a00:1450:400c:c09::229]:38105) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from <p.stephani2@HIDDEN>) id 1dAvB4-0000KW-4Z for bug-gnu-emacs@HIDDEN; Wed, 17 May 2017 05:23:30 -0400 Received: by mail-wm0-x229.google.com with SMTP id v15so8981376wmv.1 for <bug-gnu-emacs@HIDDEN>; Wed, 17 May 2017 02:23:29 -0700 (PDT) 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=7RMVrl7wLRQBnCUHF/KAqbgb+nszAbayIT7b2GD/dK0=; b=jkZ/Cn2/VUGSv5Al9SKtG1+NsMvsuX8Yiq0xehk6GZvTbaD77q4oTE+XPe88afLGOQ 1DX0CpH9RiSLUpnRT8zfG4EGC3PNLkc90mOKYz50isUL1nJiXgM/zhAtdyO2/Yl7BRRX tL9VCyTTEgd1GQgkgy9g1RKv8lM6Fkb3GzGfRkPtQCUaICtxjR8L9zdNozSyNmXakVo/ 77GPPSpTK+yh3wjKOBxxJx2ewdpeW3KKOiyAodfU1I5IUxQc331TCVmaEHumMxE1kRdt 9s18TvwU3VcBuVyzXhDt2D9GmYUPnMGCPFTJnbAcCJsZe00dmm3R/Y6hxvasIfRTnsfO /6gw== 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=7RMVrl7wLRQBnCUHF/KAqbgb+nszAbayIT7b2GD/dK0=; b=h17rX96Z8Hff+Ofmf+B3X4Cr01hAR5WQog/EtMQGZPLtHPWXoiDOWfv8mA7U6JH5SA GSC0zOS+Ee7QjQJeLh6L4suxOk/CUeZMYgSeE8iIv2SoF/Pf0lDaOOt7lOw/8TKZYVyZ 169wjD9fa2xApbu+wEtFJMBM2HUT4IP5t5rxIyqOEobXHsWsLAgiZQWVMyxVd2WgMP3i NsBiShmVzQmB0hps9VXhS/hia3WIG9MSIfFuLjbF0fZ/UsRxgVtlHbS1fIcBRdBEx13j 8p3mGPAQyQhZm3YrJJQ4th4Re67avklnGYawFvRndbn/3SlA1NdFcgpayctjLUviCL1i gAeg== X-Gm-Message-State: AODbwcDr+cDyOuDVF2eUUrxFvnMoPzh3JdBo2cVRuuBKOPSFv25C3/MG r+keeYPZs4rWYu+Pj8E= X-Received: by 10.28.236.89 with SMTP id k86mr10342373wmh.69.1495013008669; Wed, 17 May 2017 02:23:28 -0700 (PDT) Received: from a.muc.corp.google.com ([2a00:79e0:15:2:384d:f071:332f:d0e5]) by smtp.gmail.com with ESMTPSA id v7sm1637599wrv.59.2017.05.17.02.23.27 for <bug-gnu-emacs@HIDDEN> (version=TLS1_2 cipher=AES128-SHA bits=128/128); Wed, 17 May 2017 02:23:27 -0700 (PDT) From: Philipp Stephani <p.stephani2@HIDDEN> To: bug-gnu-emacs@HIDDEN Subject: 26.0.50; Complaints about unused variable in cl-destructuring-bind Date: Wed, 17 May 2017 11:23:27 +0200 Message-ID: <wvr4wp9fu99s.fsf@HIDDEN> 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 <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -3.8 (---) Create a file with the following contents (here /tmp/destr.el): ;;; -*- lexical-binding: t; -*- (require 'cl-lib) (cl-destructuring-bind (&whole a b &rest _) '(1 2) (print (list a b))) Then run emacs -Q -batch -f batch-byte-compile /tmp/destr.el The byte compiler will complain: In toplevel form: /tmp/destr.el:3:1:Warning: variable =E2=80=98_=E2=80=99 not left unused even though the variable is clearly unused. In GNU Emacs 26.0.50 (build 2, x86_64-pc-linux-gnu, GTK+ Version 3.10.8) of 2017-05-17 built on localhost Repository revision: f7c07930b581b1bcfdfb1874b6883233516bdf11 Windowing system distributor 'The X.Org Foundation', version 11.0.11803000 System Description: Ubuntu 14.04 LTS Recent messages: For information about GNU Emacs and the GNU system, type C-h C-a. Configured using: 'configure --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 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 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 subr-x 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 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 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 94336 9026) (symbols 48 20116 1) (miscs 40 39 145) (strings 32 17446 3603) (string-bytes 1 571028) (vectors 16 13884) (vector-slots 8 481230 5848) (floats 8 48 108) (intervals 56 216 0) (buffers 976 12) (heap 1024 34121 952)) --=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: Matthew Scott Sucherman, Paul Terence Manicle Diese E-Mail ist vertraulich. Wenn Sie nicht der richtige Adressat sind, leiten Sie diese bitte nicht weiter, informieren Sie den Absender und l=C3= =B6schen Sie die E-Mail und alle Anh=C3=A4nge. Vielen Dank. This e-mail is confidential. If you are not the right addressee please do = not forward it, please inform the sender, and please erase this e-mail including any attachments. Thanks.
Philipp Stephani <p.stephani2@HIDDEN>
:bug-gnu-emacs@HIDDEN
.
Full text available.bug-gnu-emacs@HIDDEN
:bug#26960
; Package emacs
.
Full text available.
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997 nCipher Corporation Ltd,
1994-97 Ian Jackson.