[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/with-simulated-input 0d5e910f19 061/134: Add an error mess
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/with-simulated-input 0d5e910f19 061/134: Add an error message for unhandled case |
Date: |
Mon, 10 Jan 2022 23:00:05 -0500 (EST) |
branch: elpa/with-simulated-input
commit 0d5e910f19657ab376f72e5848be50d13d3b8e50
Author: Ryan C. Thompson <rct@thompsonclan.org>
Commit: Ryan C. Thompson <rct@thompsonclan.org>
Add an error message for unhandled case
with-simulated-input currently doesn't work from byte-compiled code.
With this commit, it still doesn't work, but now it should produce a
germane error message.
See #6.
---
with-simulated-input.el | 2 ++
1 file changed, 2 insertions(+)
diff --git a/with-simulated-input.el b/with-simulated-input.el
index 0f344f1675..a70e7eb523 100644
--- a/with-simulated-input.el
+++ b/with-simulated-input.el
@@ -111,6 +111,8 @@ extracting and returning its lexical environment.
This can be used to manually construct closures in that
environment."
`(let ((temp-closure (lambda () t)))
+ (unless (listp temp-closure)
+ (error "Cannot capture lexical environment from byte-compiled code"))
(when (eq (car temp-closure) 'closure)
(cadr temp-closure))))
- [nongnu] elpa/with-simulated-input 3e68397677 038/134: Fix a typo, (continued)
- [nongnu] elpa/with-simulated-input 3e68397677 038/134: Fix a typo, ELPA Syncer, 2022/01/10
- [nongnu] elpa/with-simulated-input 049c120764 045/134: Extend tests a bit, ELPA Syncer, 2022/01/10
- [nongnu] elpa/with-simulated-input 7b04400315 046/134: Improve documentation, ELPA Syncer, 2022/01/10
- [nongnu] elpa/with-simulated-input 1e0725f520 048/134: Switch from evm to nix-emacs-ci, ELPA Syncer, 2022/01/10
- [nongnu] elpa/with-simulated-input 26927ea680 049/134: Specify test directory explicitly, ELPA Syncer, 2022/01/10
- [nongnu] elpa/with-simulated-input 93e55eddee 053/134: Fix linter issues and remove unused dependencies, ELPA Syncer, 2022/01/10
- [nongnu] elpa/with-simulated-input ff6bf569b1 057/134: Remove redundant buttercup dependency, ELPA Syncer, 2022/01/10
- [nongnu] elpa/with-simulated-input c377a673c8 127/134: Prefix unused variables with underscores, ELPA Syncer, 2022/01/10
- [nongnu] elpa/with-simulated-input 63297040ad 052/134: Switch from Cask to Eldev, ELPA Syncer, 2022/01/10
- [nongnu] elpa/with-simulated-input a5c955085d 055/134: Fix some warnings in test file, ELPA Syncer, 2022/01/10
- [nongnu] elpa/with-simulated-input 0d5e910f19 061/134: Add an error message for unhandled case,
ELPA Syncer <=
- [nongnu] elpa/with-simulated-input 228732caf5 063/134: Enable undercover in CI, ELPA Syncer, 2022/01/10
- [nongnu] elpa/with-simulated-input 2a83333b6d 121/134: Update the edebug spec to include characters, ELPA Syncer, 2022/01/10
- [nongnu] elpa/with-simulated-input 166a00980a 131/134: Remove some unused test code, ELPA Syncer, 2022/01/10
- [nongnu] elpa/with-simulated-input 6f338aeaed 003/134: Add a README, ELPA Syncer, 2022/01/10
- [nongnu] elpa/with-simulated-input 5a67067ae0 002/134: Initial version, ELPA Syncer, 2022/01/10
- [nongnu] elpa/with-simulated-input 4fec23e53b 001/134: Inital empty commit, ELPA Syncer, 2022/01/10
- [nongnu] elpa/with-simulated-input 9a2ba67eba 009/134: Switch to using buttercup as the test suite, ELPA Syncer, 2022/01/10
- [nongnu] elpa/with-simulated-input 9d7afd6e6c 007/134: Delete some extraneous whitespace, ELPA Syncer, 2022/01/10
- [nongnu] elpa/with-simulated-input 322dc7ed95 008/134: Add some more tests, ELPA Syncer, 2022/01/10
- [nongnu] elpa/with-simulated-input 4c68e02cc1 010/134: Allow evaluating lisp forms while simulating input, ELPA Syncer, 2022/01/10