all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* cl-case is not autoloaded in Emacs 27
@ 2021-07-21 17:18 Daniele Nicolodi
  2021-07-21 18:40 ` Bozhidar Batsov
  2021-07-21 19:18 ` Stefan Monnier
  0 siblings, 2 replies; 8+ messages in thread
From: Daniele Nicolodi @ 2021-07-21 17:18 UTC (permalink / raw)
  To: emacs-devel

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



^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2021-07-21 21:17 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-07-21 17:18 cl-case is not autoloaded in Emacs 27 Daniele Nicolodi
2021-07-21 18:40 ` Bozhidar Batsov
2021-07-21 19:32   ` Daniele Nicolodi
2021-07-21 20:06     ` Stefan Monnier
2021-07-21 20:17     ` Glenn Morris
2021-07-21 21:17       ` Daniele Nicolodi
2021-07-21 19:18 ` Stefan Monnier
2021-07-21 20:02   ` [External] : " Drew Adams

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.