[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] Changes to emacs/lisp/subr.el,v
From: |
Eli Zaretskii |
Subject: |
[Emacs-diffs] Changes to emacs/lisp/subr.el,v |
Date: |
Mon, 20 Oct 2008 19:04:31 +0000 |
CVSROOT: /cvsroot/emacs
Module name: emacs
Changes by: Eli Zaretskii <eliz> 08/10/20 19:04:31
Index: subr.el
===================================================================
RCS file: /cvsroot/emacs/emacs/lisp/subr.el,v
retrieving revision 1.612
retrieving revision 1.613
diff -u -b -r1.612 -r1.613
--- subr.el 20 Oct 2008 17:29:31 -0000 1.612
+++ subr.el 20 Oct 2008 19:04:30 -0000 1.613
@@ -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.
@@ -3570,6 +3557,19 @@
(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
;;; subr.el ends here
- [Emacs-diffs] Changes to emacs/lisp/subr.el,v, Eli Zaretskii, 2008/10/19
- [Emacs-diffs] Changes to emacs/lisp/subr.el,v, Eli Zaretskii, 2008/10/20
- [Emacs-diffs] Changes to emacs/lisp/subr.el,v, Eli Zaretskii, 2008/10/20
- [Emacs-diffs] Changes to emacs/lisp/subr.el,v, Andreas Schwab, 2008/10/20
- [Emacs-diffs] Changes to emacs/lisp/subr.el,v,
Eli Zaretskii <=
- [Emacs-diffs] Changes to emacs/lisp/subr.el,v, Eli Zaretskii, 2008/10/20
- [Emacs-diffs] Changes to emacs/lisp/subr.el,v, Juanma Barranquero, 2008/10/24
- [Emacs-diffs] Changes to emacs/lisp/subr.el,v, Martin Rudalics, 2008/10/25
- [Emacs-diffs] Changes to emacs/lisp/subr.el,v, Juanma Barranquero, 2008/10/28