;;; nf-cl-lib-compat.el --- provide some cl-lib compatibility ;; Author: Noah Friedman ;; Created: 2019-09-01 ;; Public domain ;; $Id: nf-cl-lib-compat.el,v 1.4 2020/02/12 22:34:37 friedman Exp $ ;;; Commentary: ;; Emacs 24 and earlier do not have cl-lib. ;; This library intends to provide a minimal layer of aliases necessary for ;; libraries written for later versions of emacs to work in older versions ;; of emacs. This should not be loaded in Emacs 25 or later. ;; This is a work in progress as missing definitions produce errors in my ;; other libraries in older emacsen. ;;; Code: (require 'cl) (require 'init-macros) (defalias-undefined 'cl-case 'case) (defalias-undefined 'cl-defun 'defun*) (defalias-undefined 'cl-member-if 'member-if) (defalias-undefined 'cl-nsubst 'nsubst) (defalias-undefined 'cl-pushnew 'pushnew) (defalias-undefined 'cl-rassoc-if 'rassoc-if) (defalias-undefined 'cl-subseq 'subseq) (defalias-undefined 'cl-first 'first) (defalias-undefined 'cl-second 'second) (defalias-undefined 'cl-third 'third) (defalias-undefined 'cl-eval-when 'eval-when) (provide 'cl-lib) (provide 'nf-cl-lib-compat) ;; nf-cl-lib-compat.el ends here