From: Eli Zaretskii <eliz@gnu.org>
Date: Mon, 20 Oct 2008 09:40:23 +0000 (+0000)
Subject: (top-level): Require `cl' when compiling.
X-Git-Tag: emacs-pretest-23.0.90~2341
X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=d0fc47eda0459c486dd114eee8674df1a6e4bc6a;p=emacs.git

(top-level): Require `cl' when compiling.
---

diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 3ed5c070a68..4798d2cc96a 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,7 @@
+2008-10-20  Eli Zaretskii  <eliz@gnu.org>
+
+	* subr.el (top-level): Require `cl' when compiling.
+
 2008-10-20  David Reitter <david.reitter@gmail.com>
 
 	* info.el (Info-mode): Do not remove an existing header line if
diff --git a/lisp/subr.el b/lisp/subr.el
index d078f3dd9ef..f2f70d36a8c 100644
--- a/lisp/subr.el
+++ b/lisp/subr.el
@@ -24,6 +24,10 @@
 ;;; Commentary:
 
 ;;; Code:
+
+;; This is for lexical-let in apply-partially.
+(eval-when-compile (require 'cl))
+
 (defvar custom-declare-variable-list nil
   "Record `defcustom' calls made before `custom.el' is loaded to handle them.
 Each element of this list holds the arguments to one call to `defcustom'.")