[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/cl-lib 67a7371 07/10: * cl-lib/cl-lib.el: Make it work
From: |
Stefan Monnier |
Subject: |
[elpa] externals/cl-lib 67a7371 07/10: * cl-lib/cl-lib.el: Make it work for Emacs-21. Bump version to 0.6 |
Date: |
Tue, 1 Dec 2020 15:28:44 -0500 (EST) |
branch: externals/cl-lib
commit 67a7371d581ab915d5c934a32594d8cde248d80b
Author: Stefan Monnier <monnier@iro.umontreal.ca>
Commit: Stefan Monnier <monnier@iro.umontreal.ca>
* cl-lib/cl-lib.el: Make it work for Emacs-21. Bump version to 0.6
(var aliases): Don't assume `defvaralias' is available.
---
cl-lib.el | 12 ++++++++----
1 file changed, 8 insertions(+), 4 deletions(-)
diff --git a/cl-lib.el b/cl-lib.el
index cf13c56..ed63391 100644
--- a/cl-lib.el
+++ b/cl-lib.el
@@ -1,10 +1,11 @@
;;; cl-lib.el --- Properly prefixed CL functions and macros -*- coding: utf-8
-*-
-;; Copyright (C) 2012, 2013, 2014 Free Software Foundation, Inc.
+;; Copyright (C) 2012, 2013, 2014, 2017 Free Software Foundation, Inc.
;; Author: Stefan Monnier <monnier@iro.umontreal.ca>
;; vcomment: Emacs-24.3's version is 1.0 so this has to stay below.
-;; Version: 0.5
+;; Version: 0.6
+;; Package-Requires: ((emacs "21"))
;; This program is free software; you can redistribute it and/or modify
;; it under the terms of the GNU General Public License as published by
@@ -23,7 +24,7 @@
;; This is a forward compatibility package, which provides (a subset of) the
;; features of the cl-lib package introduced in Emacs-24.3, for use on
-;; previous emacsen.
+;; previous emacsen (it should work on Emacsā„21 as well as XEmacs).
;; Make sure this is installed *late* in your `load-path`, i.e. after Emacs's
;; built-in .../lisp/emacs-lisp directory, so that if/when you upgrade to
@@ -100,7 +101,10 @@
;; custom-print-functions
))
(let ((new (intern (format "cl-%s" var))))
- (unless (boundp new) (defvaralias new var))))
+ (if (fboundp 'defvaralias)
+ (unless (boundp new) (defvaralias new var))
+ (if (fboundp 'cl-float-limits) (cl-float-limits))
+ (eval `(defvar ,new ,var ,(format "`cl-lib' alias of `%s'" var))))))
;; The following cl-lib functions were already defined in the old cl.el,
;; with a different meaning:
- [elpa] branch externals/cl-lib created (now 2cd9e37), Stefan Monnier, 2020/12/01
- [elpa] externals/cl-lib 455a801 01/10: * packages/cl-lib: New package., Stefan Monnier, 2020/12/01
- [elpa] externals/cl-lib 6f4af5f 02/10: Add cl-letf and cl-labels., Stefan Monnier, 2020/12/01
- [elpa] externals/cl-lib cad1a4c 03/10: * cl-lib.el: Try and patch things up in case we're hiding the real cl-lib., Stefan Monnier, 2020/12/01
- [elpa] externals/cl-lib cf5c963 05/10: * cl-lib.el: Resolve conflicts with old internal definitions (bug#16353)., Stefan Monnier, 2020/12/01
- [elpa] externals/cl-lib 2cd9e37 10/10: * .gitignore: New file, Stefan Monnier, 2020/12/01
- [elpa] externals/cl-lib 9062b27 08/10: * cl-lib/cl-lib.el: Don't use `emacs` package for Emacs<24, Stefan Monnier, 2020/12/01
- [elpa] externals/cl-lib fb8701d 04/10: * cl-lib.el (cl-labels): Demote error to message and improve it., Stefan Monnier, 2020/12/01
- [elpa] externals/cl-lib fbed770 06/10: Fixes: debbugs:16671, Stefan Monnier, 2020/12/01
- [elpa] externals/cl-lib 67a7371 07/10: * cl-lib/cl-lib.el: Make it work for Emacs-21. Bump version to 0.6,
Stefan Monnier <=
- [elpa] externals/cl-lib 59e400f 09/10: * cl-lib.el: Clarify that it's a forward compatibility version, Stefan Monnier, 2020/12/01