[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/with-simulated-input 15581a4459 076/134: (symbol ...) KEYS
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/with-simulated-input 15581a4459 076/134: (symbol ...) KEYS are now function-call strings |
Date: |
Mon, 10 Jan 2022 23:00:06 -0500 (EST) |
branch: elpa/with-simulated-input
commit 15581a4459cc89e9ca2284d2aef4d43e80eb0d6e
Author: Nikita Bloshchanevich <nikblos@outlook.com>
Commit: Nikita Bloshchanevich <nikblos@outlook.com>
(symbol ...) KEYS are now function-call strings
---
with-simulated-input.el | 24 ++++++++++++------------
1 file changed, 12 insertions(+), 12 deletions(-)
diff --git a/with-simulated-input.el b/with-simulated-input.el
index 03ae246429..6c3f39af3c 100644
--- a/with-simulated-input.el
+++ b/with-simulated-input.el
@@ -173,23 +173,23 @@ are propagated normally.
The return value is the last form in BODY, as if it was wrapped
in `progn'."
(declare (indent 1) (debug ([&or ("quote" (&rest &or stringp def-form))
- ("list" [&rest &or stringp ("quote"
def-form)])
- (&rest &or stringp def-form)
- stringp]
+ ("list" [&rest &or stringp ("quote"
def-form) form])
+ ([¬ symbolp] &rest &or stringp def-form)
+ form]
def-body)))
+ (if (symbolp (car keys))
+ (cl-callf list keys)
+ (setq keys `(quote ,keys)))
(pcase keys
- (`(quote ,x) (setq keys x))
- ((guard (not (listp keys))) (cl-callf list keys))
- ((guard (eq 'list (car keys)))
- (cl-loop for key in (cdr keys) collect
- (pcase key
- (`(quote ,x) x)
- (_ key))
- into new-keys finally do (setq keys new-keys))))
+ (`(quote ,x) (setq keys (cl-loop for key in x collect (if (consp key)
`',key key))))
+ (`(list . keys) (cl-callf cdr keys))
+ ((guard (not (listp keys))) (cl-callf list keys)))
`(with-simulated-input--1
(lambda ()
,@body)
- ,@(cl-loop for key in keys collect (if (consp key) `(lambda () ,key)
key))))
+ ,@(cl-loop for key in keys collect (pcase key
+ (`(quote ,x) `(lambda () ,x))
+ (x x)))))
(defvar wsi-simulated-idle-time nil
"The current simulated idle time.
- [nongnu] elpa/with-simulated-input b030953ca0 050/134: Fix a bug with actually-wait, and add tests for it, (continued)
- [nongnu] elpa/with-simulated-input b030953ca0 050/134: Fix a bug with actually-wait, and add tests for it, ELPA Syncer, 2022/01/10
- [nongnu] elpa/with-simulated-input a71ecf18f7 051/134: Fix a bug in current-idle-time advice and add a test for it, ELPA Syncer, 2022/01/10
- [nongnu] elpa/with-simulated-input ea666ecab7 064/134: Remove hacky closure modification, ELPA Syncer, 2022/01/10
- [nongnu] elpa/with-simulated-input cc15ccfe5a 062/134: Switch CI to Github Actions, ELPA Syncer, 2022/01/10
- [nongnu] elpa/with-simulated-input af15d1a1f5 068/134: Remove interpolation test, ELPA Syncer, 2022/01/10
- [nongnu] elpa/with-simulated-input 6ac56316df 074/134: Revert version change, ELPA Syncer, 2022/01/10
- [nongnu] elpa/with-simulated-input 057946280f 070/134: Greeting test: don't use dynamic forms, ELPA Syncer, 2022/01/10
- [nongnu] elpa/with-simulated-input 214ca2c4b1 087/134: Improve test coverage for current-idle-time advice, ELPA Syncer, 2022/01/10
- [nongnu] elpa/with-simulated-input 1a610d6587 089/134: Reorganize test suite, ELPA Syncer, 2022/01/10
- [nongnu] elpa/with-simulated-input c8389984e6 088/134: Update Eldev file, ELPA Syncer, 2022/01/10
- [nongnu] elpa/with-simulated-input 15581a4459 076/134: (symbol ...) KEYS are now function-call strings,
ELPA Syncer <=
- [nongnu] elpa/with-simulated-input 38454eae74 086/134: Improve test coverage for wsi-get-unbound-key, ELPA Syncer, 2022/01/10
- [nongnu] elpa/with-simulated-input 82f8bada42 077/134: Fix tests, ELPA Syncer, 2022/01/10
- [nongnu] elpa/with-simulated-input 37047a2073 090/134: Add tests for loading and unloading, ELPA Syncer, 2022/01/10
- [nongnu] elpa/with-simulated-input 2f40b160f5 096/134: Re-enable test for byte-compiled code, ELPA Syncer, 2022/01/10
- [nongnu] elpa/with-simulated-input 3525ed7dc5 095/134: Merge branch 'bleeding-edge' into rewrite-bleed, ELPA Syncer, 2022/01/10
- [nongnu] elpa/with-simulated-input 8f335ad321 108/134: Implement warnings for inputs that have no effect, ELPA Syncer, 2022/01/10
- [nongnu] elpa/with-simulated-input 8b4d44c3aa 104/134: Clean up wording in tests, ELPA Syncer, 2022/01/10
- [nongnu] elpa/with-simulated-input ee4d2b75fd 133/134: Version 3.0, ELPA Syncer, 2022/01/10
- [nongnu] elpa/with-simulated-input 4e918757ae 111/134: Implement warnings for no-op KEYS inside a variable value, ELPA Syncer, 2022/01/10
- [nongnu] elpa/with-simulated-input addb2a0711 122/134: Improve KEYS validation logic and error messages, ELPA Syncer, 2022/01/10