changeset 98943:ec4e32b94c9f

Fix last change (again).
author Eli Zaretskii <eliz@gnu.org>
date Mon, 20 Oct 2008 19:04:30 +0000
parents 24d03d4e9afe
children e3bf6a4e1aa6
files lisp/subr.el
diffstat 1 files changed, 13 insertions(+), 13 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/subr.el	Mon Oct 20 17:29:29 2008 +0000
+++ b/lisp/subr.el	Mon Oct 20 19:04:30 2008 +0000
@@ -72,10 +72,6 @@
   ;; Does nothing - byte-compile-declare-function does the work.
   nil)
 
-;; This is for lexical-let in apply-partially.  It is here because cl
-;; needs declare-function, defined above.
-(eval-when-compile (require 'cl))
-
 
 ;;;; Basic Lisp macros.
 
@@ -2260,15 +2256,6 @@
 	(get-char-property (1- (field-end pos)) 'field)
       raw-field)))
 
-(defun apply-partially (fun &rest args)
-  "Return a function that is a partial application of FUN to ARGS.
-ARGS is a list of the first N arguments to pass to FUN.
-The result is a new function which does the same as FUN, except that
-the first N arguments are fixed at the values with which this function
-was called."
-  (lexical-let ((fun fun) (args1 args))
-    (lambda (&rest args2) (apply fun (append args1 args2)))))
-
 
 ;;;; Support for yanking and text properties.
 
@@ -3569,6 +3556,19 @@
 \"1alpha\"."
   (version-list-= (version-to-list v1) (version-to-list v2)))
 
+
+;; This is for lexical-let in apply-partially.  It is here because cl
+;; needs various macros defined above.
+(eval-when-compile (require 'cl))
+
+(defun apply-partially (fun &rest args)
+  "Return a function that is a partial application of FUN to ARGS.
+ARGS is a list of the first N arguments to pass to FUN.
+The result is a new function which does the same as FUN, except that
+the first N arguments are fixed at the values with which this function
+was called."
+  (lexical-let ((fun fun) (args1 args))
+    (lambda (&rest args2) (apply fun (append args1 args2)))))
 
 
 ;; arch-tag: f7e0e6e5-70aa-4897-ae72-7a3511ec40bc