[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/async 29e6144 07/60: Allow non list bindings in async-l
From: |
Stefan Monnier |
Subject: |
[elpa] externals/async 29e6144 07/60: Allow non list bindings in async-let. |
Date: |
Tue, 8 Oct 2019 10:11:27 -0400 (EDT) |
branch: externals/async
commit 29e61448a206c6fc64e84f0bba1e67810e400f5e
Author: Thierry Volpiatto <address@hidden>
Commit: Thierry Volpiatto <address@hidden>
Allow non list bindings in async-let.
* async.el (async--fold-left): Also make arguments name more meaningful.
---
async.el | 11 +++++++----
1 file changed, 7 insertions(+), 4 deletions(-)
diff --git a/async.el b/async.el
index c7dabe2..0bb45fa 100644
--- a/async.el
+++ b/async.el
@@ -298,10 +298,13 @@ returns nil. It can still be useful, however, as an
argument to
"Evaluate FUNC in a separate Emacs process, synchronously."
`(async-get (async-start ,func)))
-(defun async--fold-left (f z xs)
- (let ((res z))
- (dolist (x xs)
- (setq res (funcall f res x)))
+(defun async--fold-left (fn forms bindings)
+ (let ((res forms))
+ (dolist (binding bindings)
+ (setq res (funcall fn res
+ (if (listp binding)
+ binding
+ (list binding)))))
res))
(defmacro async-let (bindings &rest forms)
- [elpa] externals/async 890b38f 18/60: Add makefile., (continued)
- [elpa] externals/async 890b38f 18/60: Add makefile., Stefan Monnier, 2019/10/08
- [elpa] externals/async afd1ad5 39/60: Allow removing text properties in strings when injecting, Stefan Monnier, 2019/10/08
- [elpa] externals/async 0a56cae 50/60: Update README, Stefan Monnier, 2019/10/08
- [elpa] externals/async b13baeb 47/60: Fix two issues in async-inject-variables, Stefan Monnier, 2019/10/08
- [elpa] externals/async 6fa6a86 49/60: Don't quote numbers as well, Stefan Monnier, 2019/10/08
- [elpa] externals/async caad15c 42/60: Bump to 1.9.3, Stefan Monnier, 2019/10/08
- [elpa] externals/async 373b32a 55/60: Remove props recursively when injecting vars with NOPROPS, Stefan Monnier, 2019/10/08
- [elpa] externals/async 81dc034 54/60: Merge pull request #107 from CeleritasCelery/master, Stefan Monnier, 2019/10/08
- [elpa] externals/async f61f1db 60/60: Merge pull request #113 from jwiegley/smonnier_patch, Stefan Monnier, 2019/10/08
- [elpa] externals/async 5e353eb 59/60: Change deps management in async-bytecomp.el, Stefan Monnier, 2019/10/08
- [elpa] externals/async 29e6144 07/60: Allow non list bindings in async-let.,
Stefan Monnier <=
- [elpa] externals/async d17c11e 51/60: Add more info about emacs bug when using async, Stefan Monnier, 2019/10/08
- [elpa] externals/async 7df4b68 40/60: Merge branch 'master' of github.com:jwiegley/emacs-async, Stefan Monnier, 2019/10/08
- [elpa] externals/async 6c9c3a2 17/60: Update README.md, Stefan Monnier, 2019/10/08
- [elpa] externals/async e5e636c 19/60: Update version number., Stefan Monnier, 2019/10/08
- [elpa] externals/async ea83ef5 23/60: Use emacs -q flag to fix issue #80 with emacs-26, Stefan Monnier, 2019/10/08
- [elpa] externals/async 87853ae 29/60: Allow backing up in same directory, Stefan Monnier, 2019/10/08
- [elpa] externals/async 424ecd8 32/60: Fix compilation warning, Stefan Monnier, 2019/10/08
- [elpa] externals/async 15bcbf6 37/60: Use user-emacs-directory (#95), Stefan Monnier, 2019/10/08
- [elpa] externals/async 0b545da 53/60: Only revert dired buffers if not remote, Stefan Monnier, 2019/10/08
- [elpa] externals/async d0a29f1 46/60: Copy source files when installing, Stefan Monnier, 2019/10/08