emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/dash 5bd4593 067/426: Add note about !rpartial only wor


From: Phillip Lord
Subject: [elpa] externals/dash 5bd4593 067/426: Add note about !rpartial only working on Emacs 24+
Date: Tue, 04 Aug 2015 19:36:45 +0000

branch: externals/dash
commit 5bd4593d7737afc555ba84104e1eeb5607615f9d
Author: Magnar Sveen <address@hidden>
Commit: Magnar Sveen <address@hidden>

    Add note about !rpartial only working on Emacs 24+
---
 bang.el |    7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/bang.el b/bang.el
index 81c2350..9463198 100644
--- a/bang.el
+++ b/bang.el
@@ -143,14 +143,15 @@ Thus function FN should return a collection."
 and returns a fn that takes a variable number of additional ARGS.
 When called, the returned function calls FN with ARGS first and
 then additional args."
-  `(closure (t) (&rest args)
-            (apply ',fn ,@(mapcar (lambda (arg) `',arg) args) args)))
+  (apply 'apply-partially fn args))
 
 (defun !rpartial (fn &rest args)
   "Takes a function FN and fewer than the normal arguments to FN,
 and returns a fn that takes a variable number of additional ARGS.
 When called, the returned function calls FN with the additional
-args first and then ARGS."
+args first and then ARGS.
+
+Requires Emacs 24 or higher."
   `(closure (t) (&rest args)
             (apply ',fn (append args ',args))))
 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]