GNU bug report logs - #72313
31.0.50; Warning about cl-member possibly being undefined when using cl-pushnew

Previous Next

Package: emacs;

Reported by: Tassilo Horn <tsdh <at> gnu.org>

Date: Fri, 26 Jul 2024 20:30:02 UTC

Severity: normal

Found in version 31.0.50

Done: Tassilo Horn <tsdh <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


Message #17 received at 72313 <at> debbugs.gnu.org (full text, mbox):

From: Stefan Monnier <monnier <at> iro.umontreal.ca>
To: Tassilo Horn <tsdh <at> gnu.org>
Cc: 72313 <at> debbugs.gnu.org
Subject: Re: bug#72313: 31.0.50; Warning about cl-member possibly being
 undefined when using cl-pushnew
Date: Sat, 27 Jul 2024 03:49:57 -0400
> So the conclusion is to simply (require 'cl-lib) instead of
> (eval-when-compile (require 'cl-lib))?  But how can the byte-compiler
> conclude that cl-member might not be defined at runtime given that it's
> an autoloaded function?

It's autoloaded from `cl-seq` when `cl-lib` is loaded.
It's not autoloaded at startup.

> Addon question: should a package list cl-lib in Package-Requires if it
> already requires an Emacs version where a good-enough cl-lib is included
> anyway?

I can't see any reason to do that, no.


        Stefan





This bug report was last modified 350 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.