From unknown Sun Jun 22 11:34:28 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#43678 <43678@debbugs.gnu.org> To: bug#43678 <43678@debbugs.gnu.org> Subject: Status: 27.1; compiler warning if code forgets to require cl-lib Reply-To: bug#43678 <43678@debbugs.gnu.org> Date: Sun, 22 Jun 2025 18:34:28 +0000 retitle 43678 27.1; compiler warning if code forgets to require cl-lib reassign 43678 emacs submitter 43678 "Roland Winkler" severity 43678 normal tag 43678 fixed thanks From debbugs-submit-bounces@debbugs.gnu.org Mon Sep 28 14:11:58 2020 Received: (at submit) by debbugs.gnu.org; 28 Sep 2020 18:11:58 +0000 Received: from localhost ([127.0.0.1]:53930 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kMxcz-0006do-TR for submit@debbugs.gnu.org; Mon, 28 Sep 2020 14:11:58 -0400 Received: from lists.gnu.org ([209.51.188.17]:42690) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kMxcw-0006db-4y for submit@debbugs.gnu.org; Mon, 28 Sep 2020 14:11:57 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:34980) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kMxcu-000599-VS for bug-gnu-emacs@gnu.org; Mon, 28 Sep 2020 14:11:53 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:49070) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kMxcu-0006Qc-MI for bug-gnu-emacs@gnu.org; Mon, 28 Sep 2020 14:11:52 -0400 Received: from wlanhome198228.uni-regensburg.de ([132.199.198.228]:38062 helo=regnitz) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1kMxct-0003HH-QT for bug-gnu-emacs@gnu.org; Mon, 28 Sep 2020 14:11:52 -0400 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <10063.90714.979619.24434@gargle.gargle.HOWL> Date: Mon, 28 Sep 2020 20:11:27 +0200 From: "Roland Winkler" To: bug-gnu-emacs@gnu.org Subject: 27.1; compiler warning if code forgets to require cl-lib X-Spam-Score: -2.3 (--) 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.3 (---) Until earlier today, several files in bbdb did not require cl-lib, when they should have done that. Nonetheless, bbdb compiled fine with emacs 25 and 26, but not anymore with emacs 27, see bug #30635. The goal when fixing #30635 was to issue a warning if a library uses cl-lib without requiring it. The problem with bbdb was, however, that instead the emacs 27 byte compiler threw a rather unhelpful error message about the cause of the problem. For bbdb-tex.el, it said In bbdb-TeX: bbdb-tex.el:414:25:Error: Forgot to expand macro cl-progv in ( ... I suggest that the byte compiler should issue a more helpful warning about the cause of the problem. In GNU Emacs 27.1 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.18.9) of 2020-08-31 built on regnitz Windowing system distributor 'The X.Org Foundation', version 11.0.11804000 System Description: Ubuntu 16.04.7 LTS From debbugs-submit-bounces@debbugs.gnu.org Mon Sep 28 15:20:05 2020 Received: (at 43678) by debbugs.gnu.org; 28 Sep 2020 19:20:05 +0000 Received: from localhost ([127.0.0.1]:54040 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kMygv-000231-Hr for submit@debbugs.gnu.org; Mon, 28 Sep 2020 15:20:05 -0400 Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:28035) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kMygu-00022S-AO for 43678@debbugs.gnu.org; Mon, 28 Sep 2020 15:20:04 -0400 Received: from pmg2.iro.umontreal.ca (localhost.localdomain [127.0.0.1]) by pmg2.iro.umontreal.ca (Proxmox) with ESMTP id E36A780739; Mon, 28 Sep 2020 15:19:58 -0400 (EDT) Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg2.iro.umontreal.ca (Proxmox) with ESMTP id 8864C805B8; Mon, 28 Sep 2020 15:19:56 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1601320796; bh=E18BFxRGLKsy8pL0aLpvK8QBXQCrkHX+BD2QIE4ork0=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=HW2wymcp0XHHYb1C8/qkj9jsslxX3yAvdfhUWBVD33qknv/4vwl6eCqsg1AAubUN4 XCMaSkfkbUhUVhJphdn2kHNi+hhLme4tm58Vfv6lzjgHZTmEew60BwyaLmnK8OrJdf fQ2OtCZj6ZnvBC/dhNL5Ct1pe1thLPm/GmyuPtV7L+D0bDLtcxTQ5/0pYZKgtwe6rR HatvlwOiSoeYhtul1iMLyDVNehLJdodTPJ14/+SjEP9Ds7bZEe63nEn4/D6PuHmbRb mHe+ry0YCoN7grxFA8Y6G741G4eNTmWl9IOe3xdQtYuEKjsIHoEzlTWC+IW/tyD7S+ 4vhhdEBkgF1zg== Received: from alfajor (unknown [45.72.232.131]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id 5EE49120201; Mon, 28 Sep 2020 15:19:56 -0400 (EDT) From: Stefan Monnier To: "Roland Winkler" Subject: Re: bug#43678: 27.1; compiler warning if code forgets to require cl-lib Message-ID: References: <10063.90714.979619.24434@gargle.gargle.HOWL> Date: Mon, 28 Sep 2020 15:19:55 -0400 In-Reply-To: <10063.90714.979619.24434@gargle.gargle.HOWL> (Roland Winkler's message of "Mon, 28 Sep 2020 20:11:27 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.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.074 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 X-SPAM-LEVEL: X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 43678 Cc: 43678@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: -3.3 (---) > Until earlier today, several files in bbdb did not require cl-lib, > when they should have done that. Nonetheless, bbdb compiled fine > with emacs 25 and 26, but not anymore with emacs 27, see bug #30635. > The goal when fixing #30635 was to issue a warning if a library uses > cl-lib without requiring it. The problem with bbdb was, however, > that instead the emacs 27 byte compiler threw a rather unhelpful > error message about the cause of the problem. For bbdb-tex.el, it > said > > In bbdb-TeX: > bbdb-tex.el:414:25:Error: Forgot to expand macro cl-progv in ( ... > > I suggest that the byte compiler should issue a more helpful warning > about the cause of the problem. Could you show how you got that error? When I try to compile bbdb-tex.el I get the following: % src/emacs -L .../elpa/packages/bbdb/ -Q --batch -f batch-byte-compile= .../elpa/packages/bbdb/bbdb-tex.el =20=20=20=20 In end of data: .../elpa/packages/bbdb/bbdb-tex.el:568:1: Warning: the function =E2=80= =98cl-progv=E2=80=99 is not known to be defined. % Which is the source of the error and which I hoped was "helpful enough". This is just a "warning" but it actually results in the file being miscompiled. The byte-compiler only issues a warning rather than an error because it doesn't know `cl-progv` (and hence doesn't know that it's a macro either) at that point and hence just assumes that it will be defined as a function. If you later load that `bbdb-tex.elc` file and use the `bbdb-tex` function, when it gets to the point of executing the code with the `cl-progv` it will indeed signal something like the error you've shown (because the byte code tries to call the `cl-progv` *function* but finds a *macro* in its stead). Stefan From debbugs-submit-bounces@debbugs.gnu.org Mon Sep 28 15:33:25 2020 Received: (at 43678) by debbugs.gnu.org; 28 Sep 2020 19:33:25 +0000 Received: from localhost ([127.0.0.1]:54045 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kMyto-0002My-OP for submit@debbugs.gnu.org; Mon, 28 Sep 2020 15:33:25 -0400 Received: from eggs.gnu.org ([209.51.188.92]:49724) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kMytk-0002Mj-Pq for 43678@debbugs.gnu.org; Mon, 28 Sep 2020 15:33:24 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:50815) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kMytf-00024u-HG; Mon, 28 Sep 2020 15:33:15 -0400 Received: from wlanhome198228.uni-regensburg.de ([132.199.198.228]:38214 helo=regnitz) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1kMyte-0000xf-TU; Mon, 28 Sep 2020 15:33:15 -0400 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <14966.43123.284262.24434@gargle.gargle.HOWL> Date: Mon, 28 Sep 2020 21:33:10 +0200 From: "Roland Winkler" To: Stefan Monnier Subject: Re: bug#43678: 27.1; compiler warning if code forgets to require cl-lib In-Reply-To: References: <10063.90714.979619.24434@gargle.gargle.HOWL> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 43678 Cc: 43678@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: -3.3 (---) On Mon Sep 28 2020 Stefan Monnier wrote: > Could you show how you got that error? I remove the line (eval-when-compile (require 'cl-lib)) from bbdb-tex.el, then I run $ /path_to_emacs_27.1/emacs --batch --directory=./ --funcall batch-byte-compile bbdb-tex.el This gives me In bbdb-tex: bbdb-tex.el:415:25:Error: Forgot to expand macro cl-progv in (cl-progv ... I was not the only one with this problem, see https://lists.nongnu.org/archive/html/bbdb-user/2020-09/msg00000.html From debbugs-submit-bounces@debbugs.gnu.org Mon Sep 28 16:05:18 2020 Received: (at 43678) by debbugs.gnu.org; 28 Sep 2020 20:05:18 +0000 Received: from localhost ([127.0.0.1]:54123 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kMzOf-0003Bk-ID for submit@debbugs.gnu.org; Mon, 28 Sep 2020 16:05:18 -0400 Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:26632) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kMzOP-0003At-JL for 43678@debbugs.gnu.org; Mon, 28 Sep 2020 16:05:16 -0400 Received: from pmg1.iro.umontreal.ca (localhost.localdomain [127.0.0.1]) by pmg1.iro.umontreal.ca (Proxmox) with ESMTP id 3D8B1100271; Mon, 28 Sep 2020 16:04:56 -0400 (EDT) Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg1.iro.umontreal.ca (Proxmox) with ESMTP id C630A100227; Mon, 28 Sep 2020 16:04:54 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1601323494; bh=bJOh4dOxEohPJ9DAsJ2lpgHM1X4gDZ7iWgQimyIgUDs=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=PQbs+RrPeu3eVCekU05hMAMoMzk1aV4df/Lpb2S+dR5z/YDAQ/S2aqJ+qkLSMVo0D OltrCBD7IoV/hEFhGGjsOa8RUaBJrQo2g4rzFO287ItlK4WU2KJWmWZOiUZdPUqIUT gp2H8wyLH1KLY8q0MR2saddv6wngp1LAOdP/j/Dmx/kozy1WKvYuil34Gz4yLeWZH3 LelrZInrdWZSqpxf7UZDuK+QN4pNpELlHw8E/r7lH9jVZ0LR8AkRQISTRbxop8QERn o/KYWi63BsFe45ZNMTc5Q8zy94ky2wKCa1RwRW40K3Ildp4MALzzFOoTauF+FdIIR6 mSjyIDQlBZp9Q== Received: from alfajor (unknown [45.72.232.131]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id A693D12079C; Mon, 28 Sep 2020 16:04:54 -0400 (EDT) From: Stefan Monnier To: "Roland Winkler" Subject: Re: bug#43678: 27.1; compiler warning if code forgets to require cl-lib Message-ID: References: <10063.90714.979619.24434@gargle.gargle.HOWL> <14966.43123.284262.24434@gargle.gargle.HOWL> Date: Mon, 28 Sep 2020 16:04:54 -0400 In-Reply-To: <14966.43123.284262.24434@gargle.gargle.HOWL> (Roland Winkler's message of "Mon, 28 Sep 2020 21:33:10 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.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.054 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 X-SPAM-LEVEL: X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 43678 Cc: 43678@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: -3.3 (---) > In bbdb-tex: > bbdb-tex.el:415:25:Error: Forgot to expand macro cl-progv in (cl-progv ... Oh, yes, now I can reproduce it as well (I was using an older version of BBDB before). And indeed, I had misunderstood the error, this one is a different one from the one I was thinking of. This error is because `cl-progv` was not known to the compiler when we started compiling the `bbdb-tex` function, but during the course of its compilation, something somewhere caused `cl-lib` to be loaded such that by the time the byte-compiler gets to look again at (cl-progv ...), it now notices that it's a macro, which should not be possible because we should have performed all the macro-expansion at the very beginning already. Hmmm... indeed it's clearly not a very helpful message since it even misled its original author. I think when I wrote it I assumed it would only occur because of an internal bug, but clearly it can occur in other cases. I'm not sure what would be a good error message. Maybe something like "`cl-progv` defined too late"? Stefan From debbugs-submit-bounces@debbugs.gnu.org Mon Sep 28 16:31:40 2020 Received: (at 43678) by debbugs.gnu.org; 28 Sep 2020 20:31:40 +0000 Received: from localhost ([127.0.0.1]:54144 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kMzoC-0003oy-DE for submit@debbugs.gnu.org; Mon, 28 Sep 2020 16:31:40 -0400 Received: from eggs.gnu.org ([209.51.188.92]:34906) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kMzo9-0003oi-Pt for 43678@debbugs.gnu.org; Mon, 28 Sep 2020 16:31:39 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:52193) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kMzo4-0001zR-G0; Mon, 28 Sep 2020 16:31:32 -0400 Received: from wlanhome198228.uni-regensburg.de ([132.199.198.228]:38250 helo=regnitz) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1kMzo3-0005Do-Fe; Mon, 28 Sep 2020 16:31:32 -0400 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <18461.70828.114860.24434@gargle.gargle.HOWL> Date: Mon, 28 Sep 2020 22:31:25 +0200 From: "Roland Winkler" To: Stefan Monnier Subject: Re: bug#43678: 27.1; compiler warning if code forgets to require cl-lib In-Reply-To: References: <10063.90714.979619.24434@gargle.gargle.HOWL> <14966.43123.284262.24434@gargle.gargle.HOWL> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 43678 Cc: 43678@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: -3.3 (---) On Mon Sep 28 2020 Stefan Monnier wrote: > I'm not sure what would be a good error message. > Maybe something like "`cl-progv` defined too late"? This is a tough question in the sense that presumably this error message should never appear in the first place. Could it make sense that the error message mentioned something like "cl-lib may have been loaded too late"? What other scenarios besides not requiring cl-lib can possibly be the ultimate cause of this error message so that this message can give the user some hint how to solve this problem? From debbugs-submit-bounces@debbugs.gnu.org Mon Sep 28 16:42:52 2020 Received: (at 43678) by debbugs.gnu.org; 28 Sep 2020 20:42:52 +0000 Received: from localhost ([127.0.0.1]:54157 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kMzz1-00045Y-Kx for submit@debbugs.gnu.org; Mon, 28 Sep 2020 16:42:51 -0400 Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:24856) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kMzyx-00045J-0r for 43678@debbugs.gnu.org; Mon, 28 Sep 2020 16:42:50 -0400 Received: from pmg1.iro.umontreal.ca (localhost.localdomain [127.0.0.1]) by pmg1.iro.umontreal.ca (Proxmox) with ESMTP id 0A0A1100271; Mon, 28 Sep 2020 16:42:41 -0400 (EDT) Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg1.iro.umontreal.ca (Proxmox) with ESMTP id 17424100227; Mon, 28 Sep 2020 16:42:39 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1601325759; bh=CQ5Jv0wQ7sng4Yvxv8Sux5+ekyK9IVox3HZBJqeG/lk=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=f0nr5sTHo1EXWYuOmdC6WpSvdNs2PMQK/sTflojLLVa1j/GNWM6VSxivQmSghmvmc CVpGtcNAemZ8klcljrEtEFYoW6Zm95LBZpZE6sbsHnWIXFI35RN317d0LwPEeFhjSq 33daic3o5+HDeXLX8dAVNqJOiXWnxGwPd1+V3t/wZfOOiw3zX72ks6pzDV5YDls2Nn i9iFc5vYP9mef9hb3O3DuGs5oKwSbUY2kRMbgd7LBn3GNHViPuGN+Naj15TEF9bwKq FmcNqpPSxO0vHp1YQ0XJErSYY4fcMz76/CoHRUDAw/RrGSMJw7vfqiFcRGAwO4IMCK yrTUa1HZ2nczQ== Received: from alfajor (unknown [45.72.232.131]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id AB071120298; Mon, 28 Sep 2020 16:42:38 -0400 (EDT) From: Stefan Monnier To: "Roland Winkler" Subject: Re: bug#43678: 27.1; compiler warning if code forgets to require cl-lib Message-ID: References: <10063.90714.979619.24434@gargle.gargle.HOWL> <14966.43123.284262.24434@gargle.gargle.HOWL> <18461.70828.114860.24434@gargle.gargle.HOWL> Date: Mon, 28 Sep 2020 16:42:38 -0400 In-Reply-To: <18461.70828.114860.24434@gargle.gargle.HOWL> (Roland Winkler's message of "Mon, 28 Sep 2020 22:31:25 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.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.054 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 X-SPAM-LEVEL: X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 43678 Cc: 43678@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: -3.3 (---) >> I'm not sure what would be a good error message. >> Maybe something like "`cl-progv` defined too late"? > This is a tough question in the sense that presumably this error > message should never appear in the first place. Could it make sense > that the error message mentioned something like "cl-lib may have > been loaded too late"? What other scenarios besides not requiring > cl-lib can possibly be the ultimate cause of this error message so > that this message can give the user some hint how to solve this > problem? This is not specific to `cl-lib`. It can happen with any macro if you forget to `require` the file that provides this macro, but the macro expansion (including compiler macros's expansion, i.e. optimizations) of some of the rest of your function ends up loading the file that provides this macro. Stefan From debbugs-submit-bounces@debbugs.gnu.org Mon Sep 28 17:06:20 2020 Received: (at 43678) by debbugs.gnu.org; 28 Sep 2020 21:06:21 +0000 Received: from localhost ([127.0.0.1]:54176 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kN0Lk-0004hC-LW for submit@debbugs.gnu.org; Mon, 28 Sep 2020 17:06:20 -0400 Received: from eggs.gnu.org ([209.51.188.92]:41710) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kN0Li-0004h0-R1 for 43678@debbugs.gnu.org; Mon, 28 Sep 2020 17:06:19 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:52678) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kN0Ld-0006aP-Fe; Mon, 28 Sep 2020 17:06:13 -0400 Received: from wlanhome198228.uni-regensburg.de ([132.199.198.228]:38342 helo=regnitz) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1kN0La-0001SJ-NM; Mon, 28 Sep 2020 17:06:12 -0400 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <20538.53030.515906.24434@gargle.gargle.HOWL> Date: Mon, 28 Sep 2020 23:06:02 +0200 From: "Roland Winkler" To: Stefan Monnier Subject: Re: bug#43678: 27.1; compiler warning if code forgets to require cl-lib In-Reply-To: References: <10063.90714.979619.24434@gargle.gargle.HOWL> <14966.43123.284262.24434@gargle.gargle.HOWL> <18461.70828.114860.24434@gargle.gargle.HOWL> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 43678 Cc: 43678@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: -3.3 (---) On Mon Sep 28 2020 Stefan Monnier wrote: > This is not specific to `cl-lib`. It can happen with any macro if you > forget to `require` the file that provides this macro, but the macro > expansion (including compiler macros's expansion, i.e. optimizations) of > some of the rest of your function ends up loading the file that provides > this macro. Then it seems to me that the error message could say that possibly we forgot to require *a* library. (You surely know the speculations about the cause of a problem issued by the TeX compiler. I do not remember I ever saw such speculations coming from Emacs. Maybe the byte compiler should first run a session with a doctor (M-x emacs-psychotherapist) to narrow down the cause of the problem...) From debbugs-submit-bounces@debbugs.gnu.org Tue Sep 29 10:53:49 2020 Received: (at 43678) by debbugs.gnu.org; 29 Sep 2020 14:53:49 +0000 Received: from localhost ([127.0.0.1]:56897 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kNH0n-0008FQ-2b for submit@debbugs.gnu.org; Tue, 29 Sep 2020 10:53:49 -0400 Received: from quimby.gnus.org ([95.216.78.240]:34768) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kNH0l-0008F8-3m for 43678@debbugs.gnu.org; Tue, 29 Sep 2020 10:53:47 -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=xg+YNQdwMCYv6z0jLarrXl4Yp72RqaF+l0DDUpxD0b4=; b=gEdLpKvatHKnHDvFv4H3LM9EZi UIrZ/ok9LFoHheBVZm8zzB00/QBSfHz3fNfIqO/jHlSoViMNVXAJ+IV1tKzAbZ3YEnumt5xqEMmqt vb1Fhay7ahLaJkRgD2i0zqpzDUjVKPsUJuzkmzUeglVebCX7Yssy7EoEyfb/yFDZ14BU=; Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=xo) by quimby with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kNH0c-00082L-KG; Tue, 29 Sep 2020 16:53:41 +0200 From: Lars Ingebrigtsen To: Stefan Monnier Subject: Re: bug#43678: 27.1; compiler warning if code forgets to require cl-lib References: <10063.90714.979619.24434@gargle.gargle.HOWL> <14966.43123.284262.24434@gargle.gargle.HOWL> X-Now-Playing: 23 Skidoo's _Seven Songs_: "Tearing Up the Plans Pt. 2" Date: Tue, 29 Sep 2020 16:53:37 +0200 In-Reply-To: (Stefan Monnier's message of "Mon, 28 Sep 2020 16:04:54 -0400") Message-ID: <878scsbpn2.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.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: Stefan Monnier writes: > I'm not sure what would be a good error message. > Maybe something like "`cl-progv` defined too late"? Or perhaps 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: 43678 Cc: Roland Winkler , 43678@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 (-) Stefan Monnier writes: > I'm not sure what would be a good error message. > Maybe something like "`cl-progv` defined too late"? Or perhaps "`cl-progv` defined too late (missing `require' of a library file?)" -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Wed Sep 30 01:11:03 2020 Received: (at submit) by debbugs.gnu.org; 30 Sep 2020 05:11:04 +0000 Received: from localhost ([127.0.0.1]:57824 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kNUON-0008Rk-MZ for submit@debbugs.gnu.org; Wed, 30 Sep 2020 01:11:03 -0400 Received: from lists.gnu.org ([209.51.188.17]:47294) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kNUOK-0008RI-U5 for submit@debbugs.gnu.org; Wed, 30 Sep 2020 01:11:02 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:43946) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kNUOK-0007TI-Np for bug-gnu-emacs@gnu.org; Wed, 30 Sep 2020 01:11:00 -0400 Received: from static.214.254.202.116.clients.your-server.de ([116.202.254.214]:53634 helo=ciao.gmane.io) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kNUOJ-0003Nb-6Z for bug-gnu-emacs@gnu.org; Wed, 30 Sep 2020 01:11:00 -0400 Received: from list by ciao.gmane.io with local (Exim 4.92) (envelope-from ) id 1kNUOF-0003cZ-NP for bug-gnu-emacs@gnu.org; Wed, 30 Sep 2020 07:10:55 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: bug-gnu-emacs@gnu.org From: Howard Melman Subject: Re: bug#43678: 27.1; compiler warning if code forgets to require cl-lib Date: Wed, 30 Sep 2020 01:10:51 -0400 Message-ID: References: <10063.90714.979619.24434@gargle.gargle.HOWL> <14966.43123.284262.24434@gargle.gargle.HOWL> <878scsbpn2.fsf@gnus.org> Mime-Version: 1.0 Content-Type: text/plain User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (darwin) Cancel-Lock: sha1:/ZnCJ3T6KzuxfjE1C8S6DgjKHv4= Received-SPF: pass client-ip=116.202.254.214; envelope-from=geb-bug-gnu-emacs@m.gmane-mx.org; helo=ciao.gmane.io X-detected-operating-system: by eggs.gnu.org: First seen = 2020/09/30 01:10:55 X-ACL-Warn: Detected OS = Linux 2.2.x-3.x [generic] [fuzzy] X-Spam_score_int: 5 X-Spam_score: 0.5 X-Spam_bar: / X-Spam_report: (0.5 / 5.0 requ) BAYES_00=-1.9, DKIM_ADSP_CUSTOM_MED=0.001, FORGED_GMAIL_RCVD=1, FREEMAIL_FORGED_FROMDOMAIN=0.25, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.199, NML_ADSP_CUSTOM_MED=0.9, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-Spam-Score: 0.1 (/) 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: -0.9 (/) Lars Ingebrigtsen writes: > Stefan Monnier writes: > >> I'm not sure what would be a good error message. >> Maybe something like "`cl-progv` defined too late"? > > Or perhaps > > "`cl-progv` defined too late (missing `require' of a library file?)" I think I'd find "after use" clearer than "too late". -- Howard From debbugs-submit-bounces@debbugs.gnu.org Wed Sep 30 10:13:04 2020 Received: (at 43678) by debbugs.gnu.org; 30 Sep 2020 14:13:04 +0000 Received: from localhost ([127.0.0.1]:60665 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kNcqt-0003Wr-PX for submit@debbugs.gnu.org; Wed, 30 Sep 2020 10:13:04 -0400 Received: from quimby.gnus.org ([95.216.78.240]:45662) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kNcqr-0003WD-Un for 43678@debbugs.gnu.org; Wed, 30 Sep 2020 10:13:03 -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=rYFi8gZuyXNmLRfJknlM1xp7vSL6h6kaEeUlCSboWN4=; b=LwWcZVmsaB7G/2w9O9yLSNsc+2 2lugglBP2gwPGtk8z7YyuRbwjZW/qa88zb09M5zjYQcPSGseEXLeXnGtinfBRq3DemZpz8BG90IFa foEQeyCnFHbqnC6Grj5occ0rnUdecCiNz0qLQjDbq6xepKhz1To3fLBPkDf3He0G02/4=; Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=xo) by quimby with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kNcqj-0002IB-0P; Wed, 30 Sep 2020 16:12:55 +0200 From: Lars Ingebrigtsen To: Howard Melman Subject: Re: bug#43678: 27.1; compiler warning if code forgets to require cl-lib References: <10063.90714.979619.24434@gargle.gargle.HOWL> <14966.43123.284262.24434@gargle.gargle.HOWL> <878scsbpn2.fsf@gnus.org> X-Now-Playing: Blaine L. Reininger's _Night Air 2_: "Invisible" Date: Wed, 30 Sep 2020 16:12:51 +0200 In-Reply-To: (Howard Melman's message of "Wed, 30 Sep 2020 01:10:51 -0400") Message-ID: <87d0235p5o.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.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: Howard Melman writes: >> "`cl-progv` defined too late (missing `require' of a library file?)" > > I think I'd find "after use" clearer than "too late". Good idea. I've now pushed this version to Emacs 28. 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: 43678 Cc: 43678@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 (-) Howard Melman writes: >> "`cl-progv` defined too late (missing `require' of a library file?)" > > I think I'd find "after use" clearer than "too late". Good idea. I've now pushed this version to Emacs 28. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Wed Sep 30 10:13:10 2020 Received: (at control) by debbugs.gnu.org; 30 Sep 2020 14:13:10 +0000 Received: from localhost ([127.0.0.1]:60668 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kNcr0-0003XA-2D for submit@debbugs.gnu.org; Wed, 30 Sep 2020 10:13:10 -0400 Received: from quimby.gnus.org ([95.216.78.240]:45678) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kNcqx-0003Wk-Rs for control@debbugs.gnu.org; Wed, 30 Sep 2020 10:13:08 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Subject:From:To:Message-Id:Date:Sender:Reply-To:Cc: MIME-Version:Content-Type:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=5BgYCsJsZX8Yl5VnCkQHE2P+YjBkpwRI2th+Pgj6I58=; b=dMtJ8c9IMUU3PiiZp/Od299JE1 E/BgZqN/Jprby1Eg6pS8reiLk/m//plCYVR/bFGTUsdPTa4iREEB4JiRfOYe+Va7TZTUcm+R7txiZ nUzrh2l3hbwmvtCG2OxyxgY+NPnmdxYkYeGcuKhGX7fM4St+xfJwfTxh+5r8aSfJ15Kk=; Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=xo) by quimby with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kNcqq-0002II-94 for control@debbugs.gnu.org; Wed, 30 Sep 2020 16:13:02 +0200 Date: Wed, 30 Sep 2020 16:12:59 +0200 Message-Id: <87blhn5p5g.fsf@gnus.org> To: control@debbugs.gnu.org From: Lars Ingebrigtsen Subject: control message for bug #43678 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 43678 fixed close 43678 28.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 43678 fixed close 43678 28.1 quit From unknown Sun Jun 22 11:34:28 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Thu, 29 Oct 2020 11:24:08 +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