Replace cl to cl-lib

On emacs 27.1 cl is oficially deprecated and receives a message
warning in the startup as:

        Package cl is deprecated

Using cl-lib, which prefix all the Common Lisp functions with `cl-`
solves the problem.
This commit is contained in:
Manoel Vilela 2020-08-11 21:06:04 -03:00 committed by Bozhidar Batsov
parent f73e28a9ea
commit b9f14023b3
2 changed files with 5 additions and 5 deletions

View file

@ -32,7 +32,7 @@
;; Boston, MA 02110-1301, USA.
;;; Code:
(require 'cl)
(require 'cl-lib)
(require 'package)
;; accessing a package repo over https on Windows is a no go, so we
@ -90,7 +90,7 @@
(defun prelude-packages-installed-p ()
"Check if all packages in `prelude-packages' are installed."
(every #'package-installed-p prelude-packages))
(cl-every #'package-installed-p prelude-packages))
(defun prelude-require-package (package)
"Install PACKAGE unless already installed."
@ -127,7 +127,7 @@ are installed and are not in `prelude-packages'. Useful for
removing unwanted packages."
(interactive)
(package-show-package-list
(set-difference package-activated-list prelude-packages)))
(cl-set-difference package-activated-list prelude-packages)))
(defmacro prelude-auto-install (extension package mode)
"When file with EXTENSION is opened triggers auto-install of PACKAGE.