aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGlenn Morris2008-07-16 02:50:40 +0000
committerGlenn Morris2008-07-16 02:50:40 +0000
commite3d954975bd3b654bb5b577ea96d0b057d27abed (patch)
tree92dcbf4afca676dec2050d9f9a6845ede1f06ad4
parent56565c745b778d21d0cebe75d765dce4fb2a3cd8 (diff)
downloademacs-e3d954975bd3b654bb5b577ea96d0b057d27abed.tar.gz
emacs-e3d954975bd3b654bb5b577ea96d0b057d27abed.zip
Simply require 'cl (silences spurious warnings).
-rw-r--r--lisp/emacs-lisp/cl-compat.el11
-rw-r--r--lisp/emacs-lisp/cl-seq.el10
2 files changed, 12 insertions, 9 deletions
diff --git a/lisp/emacs-lisp/cl-compat.el b/lisp/emacs-lisp/cl-compat.el
index 6ef26dfc8ed..3276f588e6a 100644
--- a/lisp/emacs-lisp/cl-compat.el
+++ b/lisp/emacs-lisp/cl-compat.el
@@ -44,8 +44,15 @@
44 44
45;;; Code: 45;;; Code:
46 46
47;; Require at load-time, but not when compiling cl-compat. 47;; This used to be:
48(or (featurep 'cl) (require 'cl)) 48;; (or (featurep 'cl) (require 'cl))
49;; which just has the effect of fooling the byte-compiler into not
50;; loading cl when compiling. However, that leads to some bogus
51;; compiler warnings. Loading cl when compiling cannot do any harm,
52;; because for a long time bootstrap-emacs contained 'cl, due to being
53;; dumped from uncompiled files that eval-when-compile'd cl. So every
54;; file was compiled with 'cl loaded.
55(require 'cl)
49 56
50 57
51;;; Keyword routines not supported by new package. 58;;; Keyword routines not supported by new package.
diff --git a/lisp/emacs-lisp/cl-seq.el b/lisp/emacs-lisp/cl-seq.el
index 0b156fc01c5..2f5ff258bca 100644
--- a/lisp/emacs-lisp/cl-seq.el
+++ b/lisp/emacs-lisp/cl-seq.el
@@ -1,7 +1,7 @@
1;;; cl-seq.el --- Common Lisp features, part 3 1;;; cl-seq.el --- Common Lisp features, part 3
2 2
3;; Copyright (C) 1993, 2001, 2002, 2003, 2004, 2005, 3;; Copyright (C) 1993, 2001, 2002, 2003, 2004, 2005, 2006, 2007,
4;; 2006, 2007, 2008 Free Software Foundation, Inc. 4;; 2008 Free Software Foundation, Inc.
5 5
6;; Author: Dave Gillespie <daveg@synaptics.com> 6;; Author: Dave Gillespie <daveg@synaptics.com>
7;; Version: 2.02 7;; Version: 2.02
@@ -31,8 +31,6 @@
31;; This package was written by Dave Gillespie; it is a complete 31;; This package was written by Dave Gillespie; it is a complete
32;; rewrite of Cesar Quiroz's original cl.el package of December 1986. 32;; rewrite of Cesar Quiroz's original cl.el package of December 1986.
33;; 33;;
34;; This package works with Emacs 18, Emacs 19, and Lucid Emacs 19.
35;;
36;; Bug reports, comments, and suggestions are welcome! 34;; Bug reports, comments, and suggestions are welcome!
37 35
38;; This file contains the Common Lisp sequence and list functions 36;; This file contains the Common Lisp sequence and list functions
@@ -43,9 +41,7 @@
43 41
44;;; Code: 42;;; Code:
45 43
46(or (memq 'cl-19 features) 44(require 'cl)
47 (error "Tried to load `cl-seq' before `cl'!"))
48
49 45
50;;; Keyword parsing. This is special-cased here so that we can compile 46;;; Keyword parsing. This is special-cased here so that we can compile
51;;; this file independent from cl-macs. 47;;; this file independent from cl-macs.