[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/with-simulated-input 7f37451dcf 019/134: Use closures inst
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/with-simulated-input 7f37451dcf 019/134: Use closures instead of quoted expressions |
Date: |
Mon, 10 Jan 2022 23:00:00 -0500 (EST) |
branch: elpa/with-simulated-input
commit 7f37451dcfbb1873f605e2a412d0585f5c3bed49
Author: Ryan C. Thompson <rct@thompsonclan.org>
Commit: Ryan C. Thompson <rct@thompsonclan.org>
Use closures instead of quoted expressions
---
with-simulated-input.el | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/with-simulated-input.el b/with-simulated-input.el
index decd5f94ef..290d2f45ee 100644
--- a/with-simulated-input.el
+++ b/with-simulated-input.el
@@ -109,7 +109,7 @@ to check.
if (stringp action)
collect action into full-key-sequence
else
- collect action into action-list and
+ collect `(lambda () ,action) into action-list and
collect exec-form-keybind into full-key-sequence
finally return
(list :keys (s-join " " full-key-sequence)
@@ -118,7 +118,7 @@ to check.
(defvar wsi-action-list nil)
(defun wsi-run-next-action ()
- "Pop and eval the next element in `wsi-action-list'.
+ "Pop and call the next function in `wsi-action-list'.
If the action list is empty, run `(keyboard-quit)' instead."
(interactive)
@@ -126,7 +126,7 @@ If the action list is empty, run `(keyboard-quit)' instead."
(if wsi-action-list
(let ((next-action (pop wsi-action-list)))
;; (message "Executing `%S'" next-action)
- (eval next-action))
+ (funcall next-action))
(error "Reached end of `wsi-action-list'."))
(error (throw 'wsi-threw-error err))))
- [nongnu] elpa/with-simulated-input 334f9f244f 119/134: Implement support for characters in KEYS, (continued)
- [nongnu] elpa/with-simulated-input 334f9f244f 119/134: Implement support for characters in KEYS, ELPA Syncer, 2022/01/10
- [nongnu] elpa/with-simulated-input 00209c2be3 128/134: Test on 27.2 instead of 27.1, ELPA Syncer, 2022/01/10
- [nongnu] elpa/with-simulated-input 1006e93000 125/134: Add more tests to improve coverage, ELPA Syncer, 2022/01/10
- [nongnu] elpa/with-simulated-input 9c160b2d81 106/134: Add warnings for quoted list KEYS and nil/constant BODY, ELPA Syncer, 2022/01/10
- [nongnu] elpa/with-simulated-input 4eedb0eee8 126/134: Use an alternate method to disable eager macro-expansion for testing, ELPA Syncer, 2022/01/10
- [nongnu] elpa/with-simulated-input 9d082a372a 113/134: Be more selective about which file changes trigger a CI run, ELPA Syncer, 2022/01/10
- [nongnu] elpa/with-simulated-input 681397b90d 130/134: Also test variables containing characters, ELPA Syncer, 2022/01/10
- [nongnu] elpa/with-simulated-input 9ecf7c3f84 107/134: Improve code for detecting warnings in tests, ELPA Syncer, 2022/01/10
- [nongnu] elpa/with-simulated-input ddd7bd71b1 011/134: Add "wsi-simulate-idle-time" and tests for it, ELPA Syncer, 2022/01/10
- [nongnu] elpa/with-simulated-input 662055c0a5 029/134: Handle non-lexical contexts as well as lexical, ELPA Syncer, 2022/01/10
- [nongnu] elpa/with-simulated-input 7f37451dcf 019/134: Use closures instead of quoted expressions,
ELPA Syncer <=
- [nongnu] elpa/with-simulated-input e7e8829eee 020/134: Make SECS arg to wsi-simulated-idle-time optional, ELPA Syncer, 2022/01/10
- [nongnu] elpa/with-simulated-input 47aa40dbe1 021/134: Handle the case where SECS exactly equals a timer's time, ELPA Syncer, 2022/01/10
- [nongnu] elpa/with-simulated-input 5ce98adda7 022/134: Add test for SECS = nil and for repeated idle simulations, ELPA Syncer, 2022/01/10
- [nongnu] elpa/with-simulated-input e860a39bba 024/134: Version 2.1, ELPA Syncer, 2022/01/10
- [nongnu] elpa/with-simulated-input c57ba13c17 043/134: Disable Travis testing emacs snapshot because it hangs, ELPA Syncer, 2022/01/10
- [nongnu] elpa/with-simulated-input 9fc83ac95d 047/134: Put spies in before-each form, ELPA Syncer, 2022/01/10
- [nongnu] elpa/with-simulated-input 2917358875 054/134: Minor CI tweaks, ELPA Syncer, 2022/01/10
- [nongnu] elpa/with-simulated-input 7bbe0ff680 056/134: Make sure buttercup and undercover are loadable in "eldev emacs", ELPA Syncer, 2022/01/10
- [nongnu] elpa/with-simulated-input 311c142650 059/134: Add comments explaining why tests are run twice, ELPA Syncer, 2022/01/10
- [nongnu] elpa/with-simulated-input 09d6f80ddc 065/134: Add an `edebug' spec, ELPA Syncer, 2022/01/10