aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Kastrup2015-01-25 20:42:46 +0100
committerArtur Malabarba2015-02-08 19:50:53 -0200
commit19ee7875db8b154a3ba49a98da2d3c24b03fff1e (patch)
tree558610c76853e14df1e61843c6ce8b0205fdca36
parent64bdc0efbe27bea66cd4be4de8205198c7a9aee8 (diff)
downloademacs-19ee7875db8b154a3ba49a98da2d3c24b03fff1e.tar.gz
emacs-19ee7875db8b154a3ba49a98da2d3c24b03fff1e.zip
subr.el (apply-partially): Use lexical binding.
Fixes: debbugs:19785 See <URL:http://lists.gnu.org/archive/html/emacs-devel/2015-01/msg00784.html> for discussion.
-rw-r--r--lisp/ChangeLog4
-rw-r--r--lisp/subr.el4
2 files changed, 6 insertions, 2 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 64424b74c95..d95c0e6d607 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,7 @@
12015-02-08 David Kastrup <dak@gnu.org>
2
3 * subr.el (apply-partially): Use lexical binding here.
4
12015-02-08 Artur Malabarba <bruce.connor.am@gmail.com> 52015-02-08 Artur Malabarba <bruce.connor.am@gmail.com>
2 6
3 * newcomment.el (comment-line): New command. 7 * newcomment.el (comment-line): New command.
diff --git a/lisp/subr.el b/lisp/subr.el
index 0dfb8ed2a51..deadca6efa0 100644
--- a/lisp/subr.el
+++ b/lisp/subr.el
@@ -136,8 +136,8 @@ ARGS is a list of the first N arguments to pass to FUN.
136The result is a new function which does the same as FUN, except that 136The result is a new function which does the same as FUN, except that
137the first N arguments are fixed at the values with which this function 137the first N arguments are fixed at the values with which this function
138was called." 138was called."
139 `(closure (t) (&rest args) 139 (lambda (&rest args2)
140 (apply ',fun ,@(mapcar (lambda (arg) `',arg) args) args))) 140 (apply fun (append args args2))))
141 141
142(defmacro push (newelt place) 142(defmacro push (newelt place)
143 "Add NEWELT to the list stored in the generalized variable PLACE. 143 "Add NEWELT to the list stored in the generalized variable PLACE.