From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.bugs Subject: bug#43678: 27.1; compiler warning if code forgets to require cl-lib Date: Mon, 28 Sep 2020 16:04:54 -0400 Message-ID: References: <10063.90714.979619.24434@gargle.gargle.HOWL> <14966.43123.284262.24434@gargle.gargle.HOWL> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="22700"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: 43678@debbugs.gnu.org To: "Roland Winkler" Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Sep 28 22:06:30 2020 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kMzPq-0005oS-5x for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 28 Sep 2020 22:06:30 +0200 Original-Received: from localhost ([::1]:55634 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kMzPo-0006Ku-Ja for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 28 Sep 2020 16:06:28 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:36344) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kMzPO-0006JT-Oh for bug-gnu-emacs@gnu.org; Mon, 28 Sep 2020 16:06:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:42577) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kMzPO-0006yp-Dv for bug-gnu-emacs@gnu.org; Mon, 28 Sep 2020 16:06:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kMzPO-0003Cp-8w for bug-gnu-emacs@gnu.org; Mon, 28 Sep 2020 16:06:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 28 Sep 2020 20:06:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 43678 X-GNU-PR-Package: emacs Original-Received: via spool by 43678-submit@debbugs.gnu.org id=B43678.160132351812266 (code B ref 43678); Mon, 28 Sep 2020 20:06:02 +0000 Original-Received: (at 43678) by debbugs.gnu.org; 28 Sep 2020 20:05:18 +0000 Original-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 Original-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 Original-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) Original-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== Original-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) In-Reply-To: <14966.43123.284262.24434@gargle.gargle.HOWL> (Roland Winkler's message of "Mon, 28 Sep 2020 21:33:10 +0200") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:189225 Archived-At: > 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