[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/async c9bd058 48/60: DRY in async-inject-variables
From: |
Stefan Monnier |
Subject: |
[elpa] externals/async c9bd058 48/60: DRY in async-inject-variables |
Date: |
Tue, 8 Oct 2019 10:11:35 -0400 (EDT) |
branch: externals/async
commit c9bd058b7d42391a06e3d8ffa2357474cd671356
Author: Thierry Volpiatto <address@hidden>
Commit: Thierry Volpiatto <address@hidden>
DRY in async-inject-variables
* async.el (async-inject-variables): Do it.
---
async.el | 15 ++++++++-------
1 file changed, 8 insertions(+), 7 deletions(-)
diff --git a/async.el b/async.el
index 1575a35..020e424 100644
--- a/async.el
+++ b/async.el
@@ -96,13 +96,14 @@ It is intended to be used as follows:
,@(let (bindings)
(mapatoms
(lambda (sym)
- (when (and (boundp sym)
- (or (null include-regexp)
- (string-match include-regexp (symbol-name sym)))
- (or (null exclude-regexp)
- (not (string-match exclude-regexp (symbol-name
sym))))
- (not (string-match "-syntax-table\\'" (symbol-name
sym))))
- (let ((value (symbol-value sym)))
+ (let* ((sname (and (boundp sym) (symbol-name sym)))
+ (value (and sname (symbol-value sym))))
+ (when (and sname
+ (or (null include-regexp)
+ (string-match include-regexp sname))
+ (or (null exclude-regexp)
+ (not (string-match exclude-regexp sname)))
+ (not (string-match "-syntax-table\\'" sname)))
(unless (or (stringp value)
(memq value '(nil t))
(vectorp value))
- [elpa] externals/async d0a29f1 46/60: Copy source files when installing, (continued)
- [elpa] externals/async d0a29f1 46/60: Copy source files when installing, Stefan Monnier, 2019/10/08
- [elpa] externals/async ec374ca 57/60: Use consp instead of listp, Stefan Monnier, 2019/10/08
- [elpa] externals/async e5f8a7f 56/60: Merge branch 'master' of github.com:jwiegley/emacs-async, Stefan Monnier, 2019/10/08
- [elpa] externals/async e22e612 11/60: Fix and clarify async-ready, async-get and async-wait (#71)., Stefan Monnier, 2019/10/08
- [elpa] externals/async d395e92 25/60: Use only -q flag when needed, Stefan Monnier, 2019/10/08
- [elpa] externals/async 09a177c 21/60: Update README., Stefan Monnier, 2019/10/08
- [elpa] externals/async 953a614 26/60: Add mode line lighter for dired-async-mode, Stefan Monnier, 2019/10/08
- [elpa] externals/async 868d927 33/60: Add .gitignore, Stefan Monnier, 2019/10/08
- [elpa] externals/async 7fa23eb 44/60: Update dired-buffers when operation ends (#99), Stefan Monnier, 2019/10/08
- [elpa] externals/async efe6bda 45/60: Check if dired buffer is alive before reverting (#99), Stefan Monnier, 2019/10/08
- [elpa] externals/async c9bd058 48/60: DRY in async-inject-variables,
Stefan Monnier <=
- [elpa] externals/async 5863eef 28/60: Copy the autoload file when installing, Stefan Monnier, 2019/10/08
- [elpa] externals/async dea9627 31/60: Merge pull request #87 from darkfeline/async, Stefan Monnier, 2019/10/08
- [elpa] externals/async 8bb64e3 41/60: Require cl-lib., Stefan Monnier, 2019/10/08
- [elpa] externals/async 7279cc6 38/60: Remove autoload file as well when uninstalling, Stefan Monnier, 2019/10/08
- [elpa] externals/async afe10c4 30/60: Add one-shot dired-async commands, Stefan Monnier, 2019/10/08
- [elpa] externals/async 4d3b737 52/60: Fix error from reverting to nonexistent directories, Stefan Monnier, 2019/10/08
- [elpa] externals/async 04e1a2c 43/60: Add async-byte-compile-file, Stefan Monnier, 2019/10/08
- [elpa] externals/async 66e6856 34/60: Merge pull request #92 from arichiardi/add-gitignore, Stefan Monnier, 2019/10/08
- [elpa] externals/async bd68cc1 58/60: Handle dotted lists as well, Stefan Monnier, 2019/10/08