# HG changeset patch # User Eli Zaretskii # Date 1224529470 0 # Node ID ec4e32b94c9f6e8b8d56ae1c356891d78f292dfa # Parent 24d03d4e9afebf2dcc9854e9b0eaca568a15a16a Fix last change (again). diff -r 24d03d4e9afe -r ec4e32b94c9f lisp/subr.el --- 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