Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Package cl is deprecated #35

Open
Zulu-Inuoe opened this issue Jan 11, 2021 · 5 comments
Open

Package cl is deprecated #35

Zulu-Inuoe opened this issue Jan 11, 2021 · 5 comments

Comments

@Zulu-Inuoe
Copy link
Collaborator

On Emacs 27+ we get the warning Package cl is deprecated.

It seems cl-lib is being used for a handful of things here and there. It would be good to remove its usage. I'd still like to maintain backwards-compatibility with at least Emacs 26, though

@nueidris
Copy link

cl-lib will work on version 24.3 and above. Compatibility is not a big issue here.

@Zulu-Inuoe
Copy link
Collaborator Author

Hi @shiorid !

What I meant here is that I would like to eliminate the deprecation warning on Emacs 27+, doing so in a way that is backwards-compatible with Emacs 26-.

@DaniruKun
Copy link

DaniruKun commented Feb 1, 2022

IIRC this was fixable by add (require 'cl-lib) to the top of the package.

@Zulu-Inuoe
Copy link
Collaborator Author

@DaniruKun we already have (require 'cl-lib) in there - Do you mean it needs to be the first line of the file?
If you have any reference I could read on I'd appreciate it

@Lord-Valen
Copy link

cl-lib is not deprecated. cl-lib is the replacement for the deprecated cl (which elcord does not use). As such, elcord is not causing the warning to be emitted and this issue should be closed. If you want to find out who's causing the deprecration warning you can call the following:

(require 'loadhist)
(file-dependents (feature-file 'cl)

@Zulu-Inuoe The matter is explained here: doomemacs/doomemacs#3372 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants