comparison lisp/emacs-lisp/cl-compat.el @ 96711:be35d9783436

Simply require 'cl (silences spurious warnings).
author Glenn Morris <rgm@gnu.org>
date Wed, 16 Jul 2008 02:50:40 +0000
parents 90a2847062be
children a9dc0e7c3f2b
comparison
equal deleted inserted replaced
96710:e3b70303f1e9 96711:be35d9783436
42 ;; See cl.el for Change Log. 42 ;; See cl.el for Change Log.
43 43
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.
52 59
53 (defmacro defkeyword (x &optional doc) 60 (defmacro defkeyword (x &optional doc)