]> git.eshelyaron.com Git - emacs.git/commitdiff
* lisp/subr.el (apply-partially): Move to 'Basic Lisp functions' section.
authorTino Calancha <tino.calancha@gmail.com>
Thu, 2 Mar 2017 23:37:23 +0000 (08:37 +0900)
committerTino Calancha <tino.calancha@gmail.com>
Thu, 2 Mar 2017 23:37:23 +0000 (08:37 +0900)
lisp/subr.el

index 4f848d1400c749d6f615d7c7641f7dbaa62e7804..6b0403890cff8418a221acbdd13bd61aa887853e 100644 (file)
@@ -132,15 +132,6 @@ buffer-local wherever it is set."
   (list 'progn (list 'defvar var val docstring)
         (list 'make-variable-buffer-local (list 'quote var))))
 
-(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."
-  (lambda (&rest args2)
-    (apply fun (append args args2))))
-
 (defmacro push (newelt place)
   "Add NEWELT to the list stored in the generalized variable PLACE.
 This is morally equivalent to (setf PLACE (cons NEWELT PLACE)),
@@ -344,6 +335,15 @@ configuration."
   (and (consp object)
        (eq (car object) 'frame-configuration)))
 
+(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."
+  (lambda (&rest args2)
+    (apply fun (append args args2))))
+
 \f
 ;;;; List functions.