From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Daniele Nicolodi Newsgroups: gmane.emacs.devel Subject: cl-case is not autoloaded in Emacs 27 Date: Wed, 21 Jul 2021 19:18:00 +0200 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="20531"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:78.0) Gecko/20100101 Thunderbird/78.11.0 To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed Jul 21 19:18:56 2021 Return-path: Envelope-to: ged-emacs-devel@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 1m6Fs0-00058l-K6 for ged-emacs-devel@m.gmane-mx.org; Wed, 21 Jul 2021 19:18:56 +0200 Original-Received: from localhost ([::1]:49022 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1m6Frz-0000z6-LU for ged-emacs-devel@m.gmane-mx.org; Wed, 21 Jul 2021 13:18:55 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:32954) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m6FrD-0007vx-UA for emacs-devel@gnu.org; Wed, 21 Jul 2021 13:18:07 -0400 Original-Received: from grinta.net ([109.74.203.128]:58978) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1m6FrC-0005Jo-1i for emacs-devel@gnu.org; Wed, 21 Jul 2021 13:18:07 -0400 Original-Received: from black.local (ip-109-42-113-152.web.vodafone.de [109.42.113.152]) (Authenticated sender: daniele) by grinta.net (Postfix) with ESMTPSA id F388FE0F1B for ; Wed, 21 Jul 2021 17:18:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=grinta.net; s=2020; t=1626887883; bh=SaWBqj23pbLNVO6Db9TP2oIXWI/IgiN86lm5iUPXNWg=; h=To:From:Subject:Date:From; b=XM9qTMN9YJxmmyvmM2dtbWMEGNHiHoXghB6yJThdn8zD8LYg1AW+BLADx1KMkjc44 lJOccYc3t6zQkZ9A/QZw1gGdozE2GAWJG+uMp3PxXbslhKXckMgqHZQiBa/SBrKEel ozqvKLi5I9CPs6ZngGbH1Z0TM7ptYUZwqbXUzvKhebeCERpgYq4P2GFGRe2ckAjXIY lEx2rWQM7EPSrf+m0jdAeNpRhcn6+cWBOhJ80zHDMVps24NvH58HfWxyF0EbblCpw4 o5SH/fp6W0bZgSHCDIS0I60SF4oLkjf5x6eXecuQtD61M5bVa+19frPIn7ZX4twiNy ynKPIDEf7sCjQ== Content-Language: en-US Received-SPF: pass client-ip=109.74.203.128; envelope-from=daniele@grinta.net; helo=grinta.net X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:271424 Archived-At: Hello, I have been trying to understand why some ERT unit tests I wrote fail in Emacs 27 while they suceed in Emacs 26. After some head scratching I found that the problem is caused by the fact that Emacs 27 does not seem to know about the cl-case macro unless I (require 'cl-macs). Indeed, if I try to byte-compile some trivial code like (let ((x ?c)) (cl-case x (?a 0) (?b 1))) in Emacs 27.1 or Emacs 27.2 I obtain these warnings: In toplevel form: test.el:1:1:Warning: ‘97’ is a malformed function test.el:1:1:Warning: ‘98’ is a malformed function In end of data: test.el:7:1:Warning: the function ‘cl-case’ is not known to be defined. Adding a (require cl-macs) to my code solves my problem, however, the doc string of cl-case would suggest that this should not be necessary. Am I missing something? Thank you. Best, Dan