Skip to content

purcell/cl-libify

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 

Melpa Status Melpa Stable Status Support me

Update Emacs Lisp code to use cl-lib instead of cl

cl is a deprecated library, and elisp authors should use cl-lib instead. In most cases, this is a matter of requiring "cl-lib" and adding a "cl-" prefix to symbols that came from "cl".

This library provides an interactive command, cl-libify, which replaces usages of "cl" symbols with their "cl-lib" equivalent, optionally prompting for each

Note that some cl functions do not have exact replacements, e.g. flet, so further code changes might still be necessary.

You can also use cl-libify-mark-cl-symbols-obsolete to mark old cl names as obsolete, so that the byte compiler will help flag their use.

Installation

Manual

Ensure cl-libify.el is in a directory on your load-path, and add the following to your ~/.emacs or ~/.emacs.d/init.el:

(require 'cl-libify)

MELPA

If you're an Emacs 24 user or you have a recent version of package.el you can install cl-libify from the MELPA repository. The version of cl-libify there will always be up-to-date.

See the command cl-libify.

About

Author: Steve Purcell

Homepage: https://github.com/purcell/cl-libify

This little library was extracted from the author's full Emacs configuration, which readers might find of interest.


πŸ’ Support this project and my other Open Source work

πŸ’Ό LinkedIn profile

✍ sanityinc.com

🐦 @sanityinc

About

Update elisp code to use cl-lib instead of cl

Resources

Stars

Watchers

Forks

Packages

No packages published