Fix last change (again).
This commit is contained in:
parent
d551d20dda
commit
887247d23c
1 changed files with 13 additions and 13 deletions
26
lisp/subr.el
26
lisp/subr.el
|
@ -72,10 +72,6 @@ For more information, see Info node `elisp(Declaring Functions)'."
|
|||
;; 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 @@ Otherwise, return nil."
|
|||
(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 @@ is greater than \"1pre\" which is greater than \"1beta\" which is greater than
|
|||
\"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
|
||||
|
|
Loading…
Add table
Reference in a new issue